Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart

Issue 2353433002: Use configurations and declared variables to select import/export URIs during prelinking. (Closed)
Patch Set: Cache selected URI. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
});
« no previous file with comments | « pkg/analyzer/test/src/summary/prelinker_test.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698