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

Unified Diff: pkg/front_end/test/scanner_fasta_test.dart

Issue 2872453004: cleanup TokenType var names (Closed)
Patch Set: Created 3 years, 7 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/test/precedence_info_test.dart ('k') | pkg/front_end/test/scanner_replacement_test.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 7dc357ce3f51b2084850ddc3b3a7b23874185b49..f3892d05ed739b527d45c9217e43978a1ed27316 100644
--- a/pkg/front_end/test/scanner_fasta_test.dart
+++ b/pkg/front_end/test/scanner_fasta_test.dart
@@ -82,7 +82,7 @@ class ScannerTest_Fasta extends ScannerTestBase {
++tokenCount;
// Assert no comments
expect(token.precedingComments, isNull);
- expect(token.info.kind, isNot(fasta.COMMENT_TOKEN));
+ expect(token.type.kind, isNot(fasta.COMMENT_TOKEN));
token = token.next;
}
expect(token.precedingComments, isNull);
@@ -99,12 +99,12 @@ class ScannerTest_Fasta extends ScannerTestBase {
fasta.CommentToken comment = token.precedingComments;
while (comment != null) {
++commentTokenCount;
- expect(comment.info.kind, fasta.COMMENT_TOKEN);
+ expect(comment.type.kind, fasta.COMMENT_TOKEN);
expect(comment.charOffset, greaterThanOrEqualTo(previousEnd));
previousEnd = comment.charOffset + comment.charCount;
comment = comment.next;
}
- expect(token.info.kind, isNot(fasta.COMMENT_TOKEN));
+ expect(token.type.kind, isNot(fasta.COMMENT_TOKEN));
expect(token.charOffset, greaterThanOrEqualTo(previousEnd));
previousEnd = token.charOffset + token.charCount;
@@ -151,7 +151,7 @@ main() {}
void prepareTokens() {
token = new fasta.StringScanner(code, includeComments: true).tokenize();
- expect(token.info.kind, fasta.IDENTIFIER_TOKEN);
+ expect(token.type.kind, fasta.IDENTIFIER_TOKEN);
c1 = token.precedingCommentTokens;
c2 = c1.next;
« no previous file with comments | « pkg/front_end/test/precedence_info_test.dart ('k') | pkg/front_end/test/scanner_replacement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698