Index: pkg/analyzer/test/src/summary/summarize_ast_test.dart |
diff --git a/pkg/analyzer/test/src/summary/summarize_ast_test.dart b/pkg/analyzer/test/src/summary/summarize_ast_test.dart |
index 2871298e9846f27dd12defb2b0e0506d40131893..87fb3493d99745d6ac11bb3bc18e79f250764fa0 100644 |
--- a/pkg/analyzer/test/src/summary/summarize_ast_test.dart |
+++ b/pkg/analyzer/test/src/summary/summarize_ast_test.dart |
@@ -153,8 +153,12 @@ abstract class LinkedSummarizeAstTest extends SummaryLinkerTest |
void serializeLibraryText(String text, {bool allowErrors: false}) { |
Map<String, UnlinkedUnitBuilder> uriToUnit = this._filesToLink.uriToUnit; |
LinkerInputs linkerInputs = createLinkerInputs(text); |
- linked = link(linkerInputs.linkedLibraries, linkerInputs.getDependency, |
- linkerInputs.getUnit, strongMode)[linkerInputs.testDartUri.toString()]; |
+ linked = link( |
+ linkerInputs.linkedLibraries, |
+ linkerInputs.getDependency, |
+ linkerInputs.getUnit, |
+ (name) => null, |
+ strongMode)[linkerInputs.testDartUri.toString()]; |
expect(linked, isNotNull); |
validateLinkedLibrary(linked); |
unlinkedUnits = <UnlinkedUnit>[linkerInputs.unlinkedDefiningUnit]; |
@@ -203,6 +207,10 @@ class LinkerInputs { |
Set<String> get linkedLibraries => _uriToUnit.keys.toSet(); |
+ String getDeclaredVariable(String name) { |
+ return null; |
+ } |
+ |
LinkedLibrary getDependency(String absoluteUri) { |
Map<String, LinkedLibrary> sdkLibraries = |
SerializedMockSdk.instance.uriToLinkedLibrary; |
@@ -299,6 +307,7 @@ abstract class SummaryLinkerTest { |
linkerInputs.linkedLibraries, |
linkerInputs.getDependency, |
linkerInputs.getUnit, |
+ linkerInputs.getDeclaredVariable, |
true); |
linkedLibraries.forEach(assembler.addLinkedLibrary); |
linkerInputs._uriToUnit.forEach((String uri, UnlinkedUnit unit) { |