Skip to content

Commit

Permalink
fixing analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
amondnet committed Oct 26, 2024
1 parent d510b6a commit 7bfb042
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mobx_codegen/lib/src/type_names.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class LibraryScopedNameFinder {
// Reverse each import's export namespace so we can map elements to their
// library-local names. Note that the definedNames include a prefix if there
// is one.
// ignore: deprecated_member_use_from_same_package
for (final import in library.libraryImports) {
for (final entry in import.namespace.definedNames.entries) {
_namesByElement[entry.value] = entry.key;
Expand Down Expand Up @@ -79,6 +80,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_from_same_package
typeElement = type.alias!.element.aliasedElement?.enclosingElement;
} else {
return _getFunctionTypeName(type);
Expand Down

0 comments on commit 7bfb042

Please sign in to comment.