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

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

Issue 10823164: Issue 4347. Fix for 'as' type cast parsing and nodes positions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39d4abea03c9bddb0c77fb8aa46272527a063568..bffce4e3afd1b143c4eac185f6ea8acfaf8d2967 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -2142,7 +2142,6 @@ public class DartParser extends CompletionHooksParserBase {
right = done(new DartTypeExpression(parseTypeAnnotation()));
}
} else if (token == Token.AS) {
- beginCastExpression();
beginTypeExpression();
right = done(new DartTypeExpression(parseTypeAnnotation()));
} else {
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698