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

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

Issue 2800583002: move fasta.Keyword methods to analyzer.Keyword (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/enum_creator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b7fbd168ee8c74f616981ce27f26f01f6636221d..0067694aa15c0b30ff87ea045bbc44d6bf191d16 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -3989,8 +3989,7 @@ class Parser {
}
}
return parseBlock();
- } else if (type == TokenType.KEYWORD &&
- !_currentToken.keyword.isPseudoKeyword) {
+ } else if (type == TokenType.KEYWORD && !_currentToken.keyword.isBuiltIn) {
Keyword keyword = _currentToken.keyword;
// TODO(jwren) compute some metrics to figure out a better order for this
// if-then sequence to optimize performance
@@ -7994,7 +7993,7 @@ class Parser {
* Return `true` if the given [token] matches a pseudo keyword.
*/
bool _tokenMatchesPseudoKeyword(Token token) =>
- token.keyword?.isPseudoKeyword ?? false;
+ token.keyword?.isBuiltIn ?? false;
/**
* Return `true` if the given [token] matches the given [identifier].
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/enum_creator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698