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

Unified Diff: pkg/dev_compiler/test/codegen_test.dart

Issue 2598593003: support --options flag and other analysis options flags in DDC (Closed)
Patch Set: add missing tests Created 4 years 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
Index: pkg/dev_compiler/test/codegen_test.dart
diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
index 4c4446cfb619d13753198b0dbeca5c5e912f4335..e571db45e114a527726675349651c056b8cbb5d3 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -79,8 +79,10 @@ main(List<String> arguments) {
.where((p) => p.endsWith('.sum'))
.toList();
- var sharedCompiler = new ModuleCompiler(new AnalyzerOptions.basic(
- dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths));
+ var sharedCompiler = new ModuleCompiler(
+ repoDirectory,
+ new AnalyzerOptions.basic(
+ dartSdkSummaryPath: sdkSummaryFile, summaryPaths: summaryPaths));
var testDirs = [
'language',
@@ -156,7 +158,7 @@ main(List<String> arguments) {
var compiler = sharedCompiler;
if (analyzerOptions.declaredVariables.isNotEmpty) {
- compiler = new ModuleCompiler(analyzerOptions);
+ compiler = new ModuleCompiler(repoDirectory, analyzerOptions);
}
var module = compiler.compile(unit, options);

Powered by Google App Engine
This is Rietveld 408576698