diff --git a/source_gen/lib/src/library.dart b/source_gen/lib/src/library.dart index cd7dc601..ccf74238 100644 --- a/source_gen/lib/src/library.dart +++ b/source_gen/lib/src/library.dart @@ -37,10 +37,8 @@ class LibraryReader { Iterable 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, ];