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

Unified Diff: pkg/dev_compiler/lib/src/compiler/compiler.dart

Issue 2713773004: Extend the API exposed to JS to include a method that resolves urls against the summaryDataStore fi… (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | pkg/dev_compiler/web/main.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/compiler.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/compiler.dart b/pkg/dev_compiler/lib/src/compiler/compiler.dart
index 75337de7bc9ec6e8929f1708792e258dd2ca6eb1..1077b2d8044f0c9a8dbb3ee0408fd72fd603142a 100644
--- a/pkg/dev_compiler/lib/src/compiler/compiler.dart
+++ b/pkg/dev_compiler/lib/src/compiler/compiler.dart
@@ -68,7 +68,8 @@ class ModuleCompiler {
factory ModuleCompiler(AnalyzerOptions options,
{ResourceProvider resourceProvider,
String analysisRoot,
- List<UriResolver> fileResolvers}) {
+ List<UriResolver> fileResolvers,
+ SummaryDataStore summaryData}) {
// TODO(danrubel): refactor with analyzer CLI into analyzer common code
AnalysisEngine.instance.processRequiredPlugins();
@@ -85,8 +86,8 @@ class ModuleCompiler {
var sdkResolver = new DartUriResolver(sdk);
// Read the summaries.
- var summaryData =
- new SummaryDataStore(options.summaryPaths, recordDependencyInfo: true);
+ summaryData ??=
+ new SummaryDataStore(options.summaryPaths, resourceProvider: resourceProvider, recordDependencyInfo: true);
var sdkSummaryBundle = sdk.getLinkedBundle();
if (sdkSummaryBundle != null) {
summaryData.addBundle(null, sdkSummaryBundle);
« no previous file with comments | « no previous file | pkg/dev_compiler/web/main.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698