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

Unified Diff: pkg/compiler/lib/src/scanner/parser.dart

Issue 1312613006: Add command-line parameter enabling assert messages. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/compiler/lib/src/scanner/parser.dart
diff --git a/pkg/compiler/lib/src/scanner/parser.dart b/pkg/compiler/lib/src/scanner/parser.dart
index 69d4e62feb4277ad9d4395c98865e910e1361327..77e6a181aa3e68b0bd7e5611f312f95132391bfa 100644
--- a/pkg/compiler/lib/src/scanner/parser.dart
+++ b/pkg/compiler/lib/src/scanner/parser.dart
@@ -43,9 +43,17 @@ class Parser {
bool mayParseFunctionExpressions = true;
bool yieldIsKeyword;
bool awaitIsKeyword;
+ bool allowAssertMessage;
Parser(this.listener,
- {this.yieldIsKeyword: false, this.awaitIsKeyword: false});
+ {this.yieldIsKeyword: false,
+ this.awaitIsKeyword: false,
+ this.allowAssertMessage: false}) {
+ print("PARSER: $allowAssertMessage");
+ if (!allowAssertMessage) {
+ try {throw 0;} catch(e,s) {print(s);}
+ }
+ }
Token parseUnit(Token token) {
listener.beginCompilationUnit(token);
« no previous file with comments | « pkg/compiler/lib/src/scanner/class_element_parser.dart ('k') | pkg/compiler/lib/src/scanner/parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698