| Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/parser/DartParser.java (revision 10968)
|
| +++ compiler/java/com/google/dart/compiler/parser/DartParser.java (working copy)
|
| @@ -4024,8 +4024,13 @@
|
| List<DartVariable> vars = parseInitializedVariableList();
|
| if (optional(Token.SEMICOLON)) {
|
| return done(new DartVariableStatement(vars, type));
|
| + } else if (peek(0) == Token.LPAREN) {
|
| + // Probably a function object invocation.
|
| + rollback();
|
| } else {
|
| - rollback();
|
| + //reportError(position(), ParserErrorCode.EXPECTED_SEMICOLON);
|
| + expectStatmentTerminator();
|
| + return done(new DartVariableStatement(vars, type));
|
| }
|
| } else {
|
| rollback();
|
|
|