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

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

Issue 2183603003: Working compiler in browser. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Git merged master Created 4 years, 5 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/src/analyzer/context.dart ('k') | pubspec.lock » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/compiler.dart
diff --git a/lib/src/compiler/compiler.dart b/lib/src/compiler/compiler.dart
index 3abd937e406c29c2f50a40bbbccf531cc931f39b..6f81c0f696ca63c2db20093832b6348a4b488099 100644
--- a/lib/src/compiler/compiler.dart
+++ b/lib/src/compiler/compiler.dart
@@ -12,8 +12,12 @@ import 'package:analyzer/analyzer.dart'
CompileTimeErrorCode,
ErrorSeverity,
StaticWarningCode;
+import 'package:analyzer/file_system/file_system.dart' show ResourceProvider;
import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
-import 'package:analyzer/src/generated/source_io.dart' show Source, SourceKind;
+import 'package:analyzer/src/generated/java_engine.dart' show AnalysisException;
+import 'package:analyzer/src/generated/source.dart' show DartUriResolver;
+import 'package:analyzer/src/generated/source_io.dart'
+ show Source, SourceKind, UriResolver;
import 'package:func/func.dart' show Func1;
import 'package:path/path.dart' as path;
@@ -55,8 +59,14 @@ class ModuleCompiler {
}
}
- ModuleCompiler(AnalyzerOptions analyzerOptions)
- : this.withContext(createAnalysisContextWithSources(analyzerOptions));
+ ModuleCompiler(AnalyzerOptions analyzerOptions,
+ {DartUriResolver sdkResolver,
+ ResourceProvider resourceProvider,
+ List<UriResolver> fileResolvers})
+ : this.withContext(createAnalysisContextWithSources(analyzerOptions,
+ sdkResolver: sdkResolver,
+ fileResolvers: fileResolvers,
+ resourceProvider: resourceProvider));
/// Compiles a single Dart build unit into a JavaScript module.
///
« no previous file with comments | « lib/src/analyzer/context.dart ('k') | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698