Skip to content

Commit

Permalink
Read parts with the defining compilation unit (#728)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
natebosch authored Oct 10, 2024
1 parent da1190d commit 2bea904
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source_gen/lib/src/library.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class LibraryReader {
...element.libraryImports,
// ignore: deprecated_member_use
...element.libraryExports,
// ignore: deprecated_member_use
...element.parts,
...element.definingCompilationUnit.parts,
];

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

0 comments on commit 2bea904

Please sign in to comment.