Skip to content

Commit

Permalink
Read libraryImports/libraryExports from the defining unit. (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
scheglov authored Oct 11, 2024
1 parent 2bea904 commit eb98c68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source_gen/lib/src/library.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ class LibraryReader {
Iterable<Element> get allElements => [
element,
...element.topLevelElements,
// ignore: deprecated_member_use
...element.libraryImports,
// ignore: deprecated_member_use
...element.libraryExports,
...element.definingCompilationUnit.libraryImports,
...element.definingCompilationUnit.libraryExports,
...element.definingCompilationUnit.parts,
];

Expand Down

0 comments on commit eb98c68

Please sign in to comment.