Index: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart b/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart |
index 3f281d37e5c2635bb2081056301b23d0628564c2..78eb236122d7ccd57171d90efb3bc81924835e3c 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_ast_test.dart |
@@ -762,15 +762,19 @@ abstract class _AstResynthesizeTestMixin |
return unit; |
} |
- Set<String> nonSdkLibraryUris = context.sources |
+ Set<String> nonSdkLibraryUris = serializedSources |
.where((Source source) => |
!source.isInSystemLibrary && |
context.computeKindOf(source) == SourceKind.LIBRARY) |
.map((Source source) => source.uri.toString()) |
.toSet(); |
- Map<String, LinkedLibrary> linkedSummaries = link(nonSdkLibraryUris, |
- getDependency, getUnit, context.analysisOptions.strongMode); |
+ Map<String, LinkedLibrary> linkedSummaries = link( |
+ nonSdkLibraryUris, |
+ getDependency, |
+ getUnit, |
+ context.declaredVariables.get, |
+ context.analysisOptions.strongMode); |
return new TestSummaryResynthesizer( |
null, |
@@ -843,8 +847,8 @@ abstract class _AstResynthesizeTestMixin |
UnlinkedUnit definingUnit = _getUnlinkedUnit(librarySource); |
if (definingUnit != null) { |
- LinkedLibraryBuilder linkedLibrary = |
- prelink(definingUnit, getPart, getImport); |
+ LinkedLibraryBuilder linkedLibrary = prelink( |
+ definingUnit, getPart, getImport, context.declaredVariables.get); |
linkedLibrary.dependencies.skip(1).forEach((LinkedDependency d) { |
_serializeLibrary(resolveRelativeUri(d.uri)); |
}); |