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

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

Issue 2899043006: cleanup fasta token classes (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/subpackage_relationships_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/token_test.dart
diff --git a/pkg/front_end/test/token_test.dart b/pkg/front_end/test/token_test.dart
index 84150964690d5fdc2e50b67b85109b0b39a04aed..61cffe5239b958dac12338fc61b8fe08ab0ca362 100644
--- a/pkg/front_end/test/token_test.dart
+++ b/pkg/front_end/test/token_test.dart
@@ -104,8 +104,8 @@ class Foo {
while (!token1.isEof) {
if (token1 is fasta.StringToken) stringTokenFound = true;
if (token1 is KeywordToken) keywordTokenFound = true;
- if (token1 is fasta.SymbolToken) symbolTokenFound = true;
- if (token1 is fasta.BeginGroupToken) beginGroupTokenFound = true;
+ if (token1.type == TokenType.OPEN_PAREN) symbolTokenFound = true;
+ if (token1 is BeginToken) beginGroupTokenFound = true;
var copy1 = token1.copy();
expect(copy1, isNotNull);
« no previous file with comments | « pkg/front_end/test/subpackage_relationships_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698