Skip to content

Commit 2bea904

Browse files
authored
Read parts with the defining compilation unit (#728)
The direct read of parts from the library element is deprecated. Retain ignores for reading imports and exports since they will be restored without a deprecation. Unblocks https://dart-review.googlesource.com/c/sdk/+/388643
1 parent da1190d commit 2bea904

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source_gen/lib/src/library.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ class LibraryReader {
4141
...element.libraryImports,
4242
// ignore: deprecated_member_use
4343
...element.libraryExports,
44-
// ignore: deprecated_member_use
45-
...element.parts,
44+
...element.definingCompilationUnit.parts,
4645
];
4746

4847
/// All of the declarations in this library annotated with [checker].

0 commit comments

Comments
 (0)