| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| index 43cf7b6fed25caa4ee5a0706e1396068be63b562..10eba43552c506063b3206dae25211edd724092e 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/parser/Parser.java
|
| @@ -2144,7 +2144,7 @@ public class Parser {
|
| expect(TokenType.SEMICOLON));
|
| }
|
| TypeName returnType = parseReturnType();
|
| - if (matches(Keyword.GET) || matches(Keyword.SET)) {
|
| + if ((matches(Keyword.GET) || matches(Keyword.SET)) && matchesIdentifier(peek())) {
|
| validateModifiersForTopLevelFunction(modifiers);
|
| return parseFunctionDeclaration(
|
| commentAndMetadata,
|
|
|