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

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

Issue 2842213003: new TokenType and Keyword API (Closed)
Patch Set: rebase 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/keyword_state.dart ('k') | pkg/front_end/lib/src/scanner/scanner.dart » ('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 e88d71319f1bfddc48e72d6b381fe0271c22ed16..92e4b1eb6300927e6fd6a0af73675d4af74c9ff0 100644
--- a/pkg/front_end/lib/src/fasta/scanner/token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
@@ -332,9 +332,9 @@ class KeywordToken extends Token implements analyzer.KeywordTokenWithComment {
TokenType get info => keyword.info;
- String get lexeme => keyword.syntax;
+ String get lexeme => keyword.lexeme;
- String get stringValue => keyword.syntax;
+ String get stringValue => keyword.lexeme;
bool isIdentifier() => keyword.isPseudo || keyword.isBuiltIn;
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/keyword_state.dart ('k') | pkg/front_end/lib/src/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698