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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/verifier.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
Index: pkg/front_end/lib/src/fasta/kernel/verifier.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/verifier.dart b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
index e95cfe69f0dbd71279f1644ab9431913be561f60..57114240103d75efc51f2b8cca5dfb1fce79f612 100644
--- a/pkg/front_end/lib/src/fasta/kernel/verifier.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/verifier.dart
@@ -23,12 +23,11 @@ import '../errors.dart' show printUnexpected;
import 'redirecting_factory_body.dart' show RedirectingFactoryBody;
-void verifyProgram(Program program, {bool isOutline: false}) {
+List<VerificationError> verifyProgram(Program program,
+ {bool isOutline: false}) {
FastaVerifyingVisitor verifier = new FastaVerifyingVisitor(isOutline);
program.accept(verifier);
- if (verifier.errors.isNotEmpty) {
- throw verifier.errors.first;
- }
+ return verifier.errors;
}
class FastaVerifyingVisitor extends VerifyingVisitor {
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_target.dart ('k') | pkg/front_end/lib/src/fasta/testing/kernel_chain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698