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

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

Issue 2890523002: merge fasta.Token into analyzer.Token (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 bf005dca2a78fc686a5551939b14720081b8b616..cf2a4c19812372f9187a40073d5d4049ce779f51 100644
--- a/pkg/front_end/test/token_test.dart
+++ b/pkg/front_end/test/token_test.dart
@@ -35,7 +35,7 @@ class Foo {
}
''';
var scanner = new StringScanner(source, includeComments: true);
- fasta.Token token = scanner.tokenize();
+ Token token = scanner.tokenize();
Token nextComment() {
while (!token.isEof) {
@@ -46,7 +46,7 @@ class Foo {
return null;
}
- fasta.Token comment = nextComment();
+ Token comment = nextComment();
expect(comment.lexeme, contains('Single line dartdoc comment'));
expect(comment.type, TokenType.SINGLE_LINE_COMMENT);
expect(comment, new isInstanceOf<DocumentationCommentToken>());
@@ -102,7 +102,7 @@ class Foo {
while (!token1.isEof) {
if (token1 is fasta.StringToken) stringTokenFound = true;
- if (token1 is fasta.KeywordToken) keywordTokenFound = true;
+ if (token1 is KeywordToken) keywordTokenFound = true;
if (token1 is fasta.SymbolToken) symbolTokenFound = true;
if (token1 is fasta.BeginGroupToken) beginGroupTokenFound = true;
« 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