Index: pkg/analyzer_cli/lib/src/build_mode.dart |
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart |
index 7632e692bceb5fe6a640323cb453e0df3506b89b..af1dbcc963b4ff57ab32af46850fd44f843b9101 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -395,8 +395,12 @@ class BuildMode { |
}); |
} |
- Map<String, LinkedLibraryBuilder> linkResult = |
- link(sourceUris, _getDependency, _getUnit, options.strongMode); |
+ Map<String, LinkedLibraryBuilder> linkResult = link( |
+ sourceUris, |
+ _getDependency, |
+ _getUnit, |
+ context.declaredVariables.get, |
+ options.strongMode); |
linkResult.forEach(assembler.addLinkedLibrary); |
} |
} |