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

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

Issue 2795243002: fix fasta/analyzer KeywordToken.value() (Closed)
Patch Set: remove unused import 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 | « pkg/front_end/lib/src/fasta/scanner/token.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/scanner/token.dart
diff --git a/pkg/front_end/lib/src/scanner/token.dart b/pkg/front_end/lib/src/scanner/token.dart
index cb922e8f727df031b0c9723905be48574f12006d..fe79e5f2387a8e57efc10e7f687ee8925765bd8d 100644
--- a/pkg/front_end/lib/src/scanner/token.dart
+++ b/pkg/front_end/lib/src/scanner/token.dart
@@ -358,7 +358,9 @@ class KeywordToken extends SimpleToken {
Token copy() => new KeywordToken(keyword, offset);
@override
- Keyword value() => keyword;
+ // Changed return type from Keyword to Object because
+ // fasta considers pseudo-keywords to be keywords rather than identifiers
+ Object value() => keyword;
}
/**
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/token.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698