Skip to content

Commit

Permalink
removed depricated enclosingElement3
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasilt committed Aug 30, 2023
1 parent 4091508 commit 3cae66d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mobx_codegen/lib/src/type_names.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ class LibraryScopedNameFinder {
// If we're dealing with a typedef, we let it undergo the standard name
// lookup. Otherwise, we special case the function naming.
if (type.alias?.element is TypeAliasElement) {
// ignore: deprecated_member_use
typeElement = type.alias!.element.aliasedElement?.enclosingElement3;
typeElement = type.alias!.element.aliasedElement?.enclosingElement;
} else {
return _getFunctionTypeName(type);
}
Expand Down

0 comments on commit 3cae66d

Please sign in to comment.