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

Unified Diff: pkg/compiler/lib/src/scanner/parser_task.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
« no previous file with comments | « pkg/compiler/lib/src/scanner/parser.dart ('k') | pkg/compiler/lib/src/scanner/partial_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/parser_task.dart
diff --git a/pkg/compiler/lib/src/scanner/parser_task.dart b/pkg/compiler/lib/src/scanner/parser_task.dart
index c680a31afb216f4c300362f331295e36805aa861..ec05c34429eaa8ff0a2c7ddb1f714c7e3bd85149 100644
--- a/pkg/compiler/lib/src/scanner/parser_task.dart
+++ b/pkg/compiler/lib/src/scanner/parser_task.dart
@@ -15,7 +15,8 @@ class ParserTask extends CompilerTask {
Node parseCompilationUnit(Token token) {
return measure(() {
NodeListener listener = new NodeListener(compiler, null);
- Parser parser = new Parser(listener);
+ Parser parser =
+ new Parser(listener, allowAssertMessage: compiler.allowAssertMessage);
try {
parser.parseUnit(token);
} on ParserError catch(_) {
« no previous file with comments | « pkg/compiler/lib/src/scanner/parser.dart ('k') | pkg/compiler/lib/src/scanner/partial_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698