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

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

Issue 2746923002: Implement nested switches and missing switch continue targets. (Closed)
Patch Set: Long line. Created 3 years, 9 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 | « pkg/front_end/lib/src/fasta/kernel/verifier.dart ('k') | pkg/kernel/lib/verifier.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart b/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
index 638b5761667c6e3285777136f017264bd283eae1..0a714a830b673718d0e79aa5ea954632281a83c1 100644
--- a/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
+++ b/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
@@ -192,12 +192,12 @@ class Verify extends Step<Program, Program, TestContext> {
String get name => "verify";
Future<Result<Program>> run(Program program, TestContext testContext) async {
- try {
- verifyProgram(program, isOutline: !fullCompile);
+ var errors = verifyProgram(program, isOutline: !fullCompile);
+ if (errors.isEmpty) {
return pass(program);
- } catch (e, s) {
+ } else {
return new Result<Program>(
- null, testContext.expectationSet["VerificationError"], e, s);
+ null, testContext.expectationSet["VerificationError"], errors, null);
}
}
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/verifier.dart ('k') | pkg/kernel/lib/verifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698