Chromium Code Reviews| 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 b91421977f260c09ee4a7f7fe734e50859ecc9b1..9fc016270664ecd2047541b02aba81efe28b2f7c 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 |
| @@ -2082,6 +2082,13 @@ public class Parser { |
| } |
| return tokenMatches(afterName, TokenType.FUNCTION) |
| || tokenMatches(afterName, TokenType.OPEN_CURLY_BRACKET); |
| + } else if (tokenMatchesKeyword(afterReturnType, Keyword.GET)) { |
|
scheglov
2014/10/21 21:11:10
Should we also add a branch for Keyword.SET ?
Brian Wilkerson
2014/10/21 21:17:09
Turns out we don't need to because 'set' gets take
|
| + Token afterName = skipSimpleIdentifier(afterReturnType.getNext()); |
| + if (afterName == null) { |
| + return false; |
| + } |
| + return tokenMatches(afterName, TokenType.FUNCTION) |
| + || tokenMatches(afterName, TokenType.OPEN_CURLY_BRACKET); |
| } |
| return false; |
| } |