Index: pkg/analyzer/lib/src/summary/summarize_ast.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
index 2ca188cf564af7ee1a547cf7de40862e2bbb3e31..e1d45ce408f4c4edcaa49a4adf1d732065772ad1 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
@@ -1437,7 +1437,8 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
@override |
void visitPartOfDirective(PartOfDirective node) { |
- isCoreLibrary = node.libraryName?.name == 'dart.core'; |
+ isCoreLibrary = node.libraryName?.name == 'dart.core' || |
+ node.uri?.stringValue == 'core.dart'; |
isPartOf = true; |
} |