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

Unified Diff: lib/src/analysis_context.dart

Issue 1150143006: fixes #201, add support for custom URL mapping (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: remove options change Created 5 years, 7 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 | lib/src/dependency_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/analysis_context.dart
diff --git a/lib/src/analysis_context.dart b/lib/src/analysis_context.dart
index 26677b19fd293702adafa9e8c641091f3c71caaa..4b8d3106eadf347c35184985d7e65c7b5792eb23 100644
--- a/lib/src/analysis_context.dart
+++ b/lib/src/analysis_context.dart
@@ -34,7 +34,11 @@ AnalysisContext createAnalysisContext(CompilerOptions options,
? createMockSdkResolver(mockSdkSources)
: createSdkPathResolver(options.dartSdkPath);
- var resolvers = [sdkResolver];
+ var resolvers = [];
+ if (options.customUrlMappings.isNotEmpty) {
+ resolvers.add(new CustomUriResolver(options.customUrlMappings));
+ }
+ resolvers.add(sdkResolver);
if (options.useImplicitHtml) {
resolvers.add(_createImplicitEntryResolver(options));
}
« no previous file with comments | « no previous file | lib/src/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698