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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 10516006: Issue 3268. Support for replacing 'assert' statement with 'assert' function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 years, 6 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: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index 66abb3b81139a2e1b7b315b99f8efc47bb496ff7..12260512aa88eabe122c8c43cdfb8559ea6c9861 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -16,7 +16,6 @@ import com.google.dart.compiler.Source;
import com.google.dart.compiler.SystemLibraryManager;
import com.google.dart.compiler.ast.DartArrayAccess;
import com.google.dart.compiler.ast.DartArrayLiteral;
-import com.google.dart.compiler.ast.DartAssertion;
import com.google.dart.compiler.ast.DartBinaryExpression;
import com.google.dart.compiler.ast.DartBlock;
import com.google.dart.compiler.ast.DartBooleanLiteral;
@@ -3437,13 +3436,6 @@ public class DartParser extends CompletionHooksParserBase {
private DartStatement parseExpressionStatement() {
beginExpressionStatement();
- if (peek(1) == Token.LPAREN && optionalPseudoKeyword(ASSERT_KEYWORD)) {
- consume(Token.LPAREN);
- DartExpression expression = parseConditionalExpression();
- expectCloseParen();
- expectStatmentTerminator();
- return done(new DartAssertion(expression));
- }
DartExpression expression = parseExpression();
expectStatmentTerminator();

Powered by Google App Engine
This is Rietveld 408576698