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

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: Undid unnecessary changes 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') | pubspec.yaml » ('J')
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 6355dcfb17485850c1f094aaa6b85c127a0808e4..2a5402f461d577111f94d49364b29435f8dd7a9d 100644
--- a/lib/src/compiler/compiler.dart
+++ b/lib/src/compiler/compiler.dart
@@ -11,9 +11,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/java_engine.dart' show AnalysisException;
-import 'package:analyzer/src/generated/source_io.dart' show Source, SourceKind;
+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 +58,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') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698