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

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

Issue 2856223003: Implement the kernel_generator API using fasta (Closed)
Patch Set: Created 3 years, 8 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/fasta.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta.dart b/pkg/front_end/lib/src/fasta/fasta.dart
index ecd2c512f7dc9398accca96217b06050abdecff0..c42058949ab626e87c808ef7f4f98e9397d63861 100644
--- a/pkg/front_end/lib/src/fasta/fasta.dart
+++ b/pkg/front_end/lib/src/fasta/fasta.dart
@@ -173,8 +173,6 @@ Future<CompilationResult> parseScript(
formatUnexpected(patchedSdk, -1, "Patched sdk directory not found."));
}
- Target target = getTarget("vm", new TargetFlags(strongMode: false));
-
Program program;
try {
TranslateUri uriTranslator = await TranslateUri.parse(null, packages);
@@ -201,6 +199,7 @@ Future<CompilationResult> parseScript(
}
// Perform target-specific transformations.
+ Target target = getTarget("vm", new TargetFlags(strongMode: false));
target.performModularTransformations(program);
target.performGlobalTransformations(program);

Powered by Google App Engine
This is Rietveld 408576698