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

Unified Diff: lib/src/analysis_context.dart

Issue 1179643005: first step for #168, adds dart:js impl to the build (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « lib/runtime/dart/js.js ('k') | tool/build_sdk.sh » ('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 b41c79248c0807a1e5d2b23c3704f9ebfacc74b0..e323783f9b043992641a04f9346ddc74fa5a2cf1 100644
--- a/lib/src/analysis_context.dart
+++ b/lib/src/analysis_context.dart
@@ -74,8 +74,9 @@ DartUriResolver createMockSdkResolver(Map<String, String> mockSources) =>
new MockDartSdk(mockSources, reportMissing: true).resolver;
/// Creates a [DartUriResolver] that uses the SDK at the given [sdkPath].
-DartUriResolver createSdkPathResolver(String sdkPath) =>
- new DartUriResolver(new DirectoryBasedDartSdk(new JavaFile(sdkPath)));
+DartUriResolver createSdkPathResolver(String sdkPath) => new DartUriResolver(
+ new DirectoryBasedDartSdk(
+ new JavaFile(sdkPath), /*useDart2jsPaths:*/ true));
UriResolver _createImplicitEntryResolver(SourceResolverOptions options) {
var entry = path.absolute(SourceResolverOptions.implicitHtmlFile);
« no previous file with comments | « lib/runtime/dart/js.js ('k') | tool/build_sdk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698