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]. |