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

Unified Diff: pkg/front_end/lib/src/fasta/vm.dart

Issue 2932513003: Add getTarget method to CompilerCommandLine (Closed)
Patch Set: Created 3 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
Index: pkg/front_end/lib/src/fasta/vm.dart
diff --git a/pkg/front_end/lib/src/fasta/vm.dart b/pkg/front_end/lib/src/fasta/vm.dart
index 45235fb67e04d299c304eca84dcc11999728596a..2da5da863b50ea880b9c269148ae24691840a280 100644
--- a/pkg/front_end/lib/src/fasta/vm.dart
+++ b/pkg/front_end/lib/src/fasta/vm.dart
@@ -18,6 +18,9 @@ import 'package:front_end/physical_file_system.dart';
import 'fasta.dart' as fasta;
+import 'package:kernel/target/targets.dart' show TargetFlags;
+import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
+
/// Compilation status codes.
///
/// Note: The [index] property of these constants must match
@@ -84,9 +87,9 @@ Future<CompilationResult> parseScriptInFileSystem(
}
try {
- return await fasta.parseScriptInFileSystem(
- script, fileSystem, packagesUri, patchedSdk,
- verbose: verbose, strongMode: strongMode);
+ return await fasta.parseScriptInFileSystem(script, fileSystem, packagesUri,
+ patchedSdk, new VmFastaTarget(new TargetFlags(strongMode: strongMode)),
+ verbose: verbose);
} catch (err, stack) {
return new CompilationResult.crash(err, stack);
}

Powered by Google App Engine
This is Rietveld 408576698