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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/token.dart

Issue 2759663002: Improve parsing of async and generator methods. (Closed)
Patch Set: Ignore some error messages already handled by dart2js. Created 3 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/scanner/token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/token.dart b/pkg/front_end/lib/src/fasta/scanner/token.dart
index 5d722862f788de27f9c9fbd92fa546ed8e42f1f8..c162ee6443df24b65ff1b64857b6b437f2c19c38 100644
--- a/pkg/front_end/lib/src/fasta/scanner/token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
@@ -96,6 +96,8 @@ abstract class Token {
*/
bool isIdentifier();
+ bool get isPseudo => false;
+
/**
* Returns a textual representation of this token to be used for debugging
* purposes. The resulting string might contain information about the
@@ -178,6 +180,8 @@ class KeywordToken extends Token {
bool isIdentifier() => keyword.isPseudo || keyword.isBuiltIn;
+ bool get isPseudo => keyword.isPseudo;
+
bool get isBuiltInIdentifier {
// TODO(ahe): Remove special case for "deferred" once dartbug.com/29069 is
// fixed.
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698