Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 8788001: Trying to unbreak dart editor build - new use of rollback messes up code completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to fix unit test Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698