Index: compiler/java/com/google/dart/compiler/parser/DartParser.java |
=================================================================== |
--- compiler/java/com/google/dart/compiler/parser/DartParser.java (revision 9082) |
+++ compiler/java/com/google/dart/compiler/parser/DartParser.java (working copy) |
@@ -4406,6 +4406,10 @@ |
private DartIdentifier parseIdentifier() { |
beginIdentifier(); |
+ if (peek(0) == Token.AS) { |
+ next(); |
+ return done(new DartIdentifier("as")); |
+ } |
if (looksLikeTopLevelKeyword()) { |
reportErrorWithoutAdvancing(ParserErrorCode.EXPECTED_IDENTIFIER); |
return done(new DartSyntheticErrorIdentifier()); |