Skip to content

Commit 4bab739

Browse files
authored
Read libraryImports/libraryExports from the defining unit. (dart-lang/source_gen#729)
1 parent a6c7bf9 commit 4bab739

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkgs/source_gen/source_gen/lib/src/library.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ class LibraryReader {
3737
Iterable<Element> get allElements => [
3838
element,
3939
...element.topLevelElements,
40-
// ignore: deprecated_member_use
41-
...element.libraryImports,
42-
// ignore: deprecated_member_use
43-
...element.libraryExports,
40+
...element.definingCompilationUnit.libraryImports,
41+
...element.definingCompilationUnit.libraryExports,
4442
...element.definingCompilationUnit.parts,
4543
];
4644

0 commit comments

Comments
 (0)