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

Unified Diff: tests/compiler/dart2js/scanner_offset_length_test.dart

Issue 2738313002: rename fasta.Token.value --> lexeme (Closed)
Patch Set: merge 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 | « tests/compiler/dart2js/partial_parser_test.dart ('k') | tests/compiler/dart2js/scanner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/scanner_offset_length_test.dart
diff --git a/tests/compiler/dart2js/scanner_offset_length_test.dart b/tests/compiler/dart2js/scanner_offset_length_test.dart
index f03e393b666e21c9ed6aae569fac1e464e7038d1..fe306151c9d341e3a3164acc72b9d70ba59eb738 100644
--- a/tests/compiler/dart2js/scanner_offset_length_test.dart
+++ b/tests/compiler/dart2js/scanner_offset_length_test.dart
@@ -11,7 +11,7 @@ Token scan(String text) =>
check(String text) {
Token token = scan(text);
while (token.kind != EOF_TOKEN) {
- Expect.equals(token.value.length, token.charCount);
+ Expect.equals(token.lexeme.length, token.charCount);
var start = token.charOffset;
var end = token.charOffset + token.charCount;
@@ -27,9 +27,9 @@ check(String text) {
var substring = text.substring(start, end);
Expect.stringEquals(
- token.value,
+ token.lexeme,
substring,
- 'token.value=${token.value} == '
+ 'token.value=${token.lexeme} == '
'text.substring(start,end)=${substring}: $text');
print('$text: [$start,$end]:$token');
« no previous file with comments | « tests/compiler/dart2js/partial_parser_test.dart ('k') | tests/compiler/dart2js/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698