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

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 1851623002: Issue 26148. Don't use a current token if it does not match - create a new synthetic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months 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: pkg/analyzer/lib/src/generated/parser.dart
diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
index 6656081ad1a4176f73a21adaa14159b2b10fc763..28cc6f4a7f141da9d98bc18f84eb251740c58a4b 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -3816,7 +3816,7 @@ class Parser {
return _createSyntheticToken(TokenType.SEMICOLON);
}
_reportErrorForCurrentToken(ParserErrorCode.EXPECTED_TOKEN, [type.lexeme]);
- return _currentToken;
+ return _createSyntheticToken(type);
}
/**

Powered by Google App Engine
This is Rietveld 408576698