| 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 52fc45067e17a5d50203226d17950380ab68bff8..859102a77b9a944fd8bd7d84c579b1574a7aa783 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| @@ -620,7 +620,7 @@ public class DartParser extends CompletionHooksParserBase {
|
| * @return true if the next tokens should be parsed as a type
|
| */
|
| private boolean isFunctionTypeAliasName() {
|
| - startLookahead();
|
| + beginFunctionTypeInterface();
|
| try {
|
| if (peek(0) == Token.IDENTIFIER && peek(1) == Token.LPAREN) {
|
| return true;
|
| @@ -949,7 +949,7 @@ public class DartParser extends CompletionHooksParserBase {
|
| */
|
| private boolean looksLikeMethodOrAccessorDefinition() {
|
| assert (peek(0).equals(Token.IDENTIFIER));
|
| - startLookahead(); // begin() equivalent
|
| + beginMethodName(); // begin() equivalent
|
| try {
|
| // Simple checks
|
| if (peekPseudoKeyword(0, GETTER_KEYWORD)
|
| @@ -2901,7 +2901,7 @@ public class DartParser extends CompletionHooksParserBase {
|
| * @return true if the following tokens should be parsed as a function definition
|
| */
|
| private boolean looksLikeFunctionDeclarationOrExpression() {
|
| - startLookahead();
|
| + beginMethodName();
|
| try {
|
| if (peek(0) == Token.IDENTIFIER && peek(1) == Token.LPAREN) {
|
| // just a name, no return type
|
|
|