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

Unified Diff: pkg/front_end/test/scanner_fasta_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 | « pkg/front_end/lib/src/fasta/source/stack_listener.dart ('k') | pkg/front_end/tool/fasta_perf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/scanner_fasta_test.dart
diff --git a/pkg/front_end/test/scanner_fasta_test.dart b/pkg/front_end/test/scanner_fasta_test.dart
index 5b87dc3025cd0d1572f0c7b30483ce23265fb9af..933e3897eff206c0a386d5e6dd8b6d58c25aa286 100644
--- a/pkg/front_end/test/scanner_fasta_test.dart
+++ b/pkg/front_end/test/scanner_fasta_test.dart
@@ -115,19 +115,19 @@ class ScannerTest_Fasta extends ScannerTestBase {
previousEnd = token.charOffset + token.charCount;
// Spot check for specific token/comment combinations
- if (token.value == 'class') {
+ if (token.lexeme == 'class') {
++spotCheckCount;
- expect(token.precedingComments?.value, '/// Doc comment before class');
- expect(token.precedingComments?.next?.value, '/// second line');
- expect(token.precedingComments?.next?.next?.value, '/// third');
+ expect(token.precedingComments?.lexeme, '/// Doc comment before class');
+ expect(token.precedingComments?.next?.lexeme, '/// second line');
+ expect(token.precedingComments?.next?.next?.lexeme, '/// third');
expect(token.precedingComments?.next?.next?.next, isNull);
- } else if (token.value == 'Foo2') {
+ } else if (token.lexeme == 'Foo2') {
++spotCheckCount;
- expect(token.precedingComments?.value, '/** Doc comment 2 */');
- } else if (token.value == ')') {
+ expect(token.precedingComments?.lexeme, '/** Doc comment 2 */');
+ } else if (token.lexeme == ')') {
if (token.precedingComments != null) {
++spotCheckCount;
- expect(token.precedingComments?.value,
+ expect(token.precedingComments?.lexeme,
'/* comment before closing paren */');
expect(token.precedingComments?.next, isNull);
}
@@ -138,7 +138,7 @@ class ScannerTest_Fasta extends ScannerTestBase {
expect(tokenCount, 26);
expect(spotCheckCount, 3);
expect(commentTokenCount, 9);
- expect(token.precedingComments?.value, '// EOF comment');
+ expect(token.precedingComments?.lexeme, '// EOF comment');
}
@override
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/stack_listener.dart ('k') | pkg/front_end/tool/fasta_perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698