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

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

Issue 2872433005: more work aligning fasta.Token with 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
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 f3892d05ed739b527d45c9217e43978a1ed27316..8e5f8a5b6f0dafce8dce42acf5f93615294e3c79 100644
--- a/pkg/front_end/test/scanner_fasta_test.dart
+++ b/pkg/front_end/test/scanner_fasta_test.dart
@@ -153,7 +153,7 @@ main() {}
expect(token.type.kind, fasta.IDENTIFIER_TOKEN);
- c1 = token.precedingCommentTokens;
+ c1 = token.precedingComments;
c2 = c1.next;
c3 = c2.next;
expect(c3.next, isNull);
@@ -171,7 +171,7 @@ main() {}
{
prepareTokens();
c1.remove();
- expect(token.precedingCommentTokens, c2);
+ expect(token.precedingComments, c2);
expect(c2.next, c3);
expect(c3.next, isNull);
}
@@ -180,7 +180,7 @@ main() {}
{
prepareTokens();
c2.remove();
- expect(token.precedingCommentTokens, c1);
+ expect(token.precedingComments, c1);
expect(c1.next, c3);
expect(c3.next, isNull);
}
@@ -189,7 +189,7 @@ main() {}
{
prepareTokens();
c3.remove();
- expect(token.precedingCommentTokens, c1);
+ expect(token.precedingComments, c1);
expect(c1.next, c2);
expect(c2.next, isNull);
}
@@ -248,11 +248,11 @@ main() {}
fasta.Token token =
new fasta.StringScanner(source, includeComments: true).tokenize();
while (!token.isEof) {
- expect(token.next.previousToken, token);
+ expect(token.next.previous, token);
fasta.CommentToken commentToken = token.precedingComments;
while (commentToken != null) {
if (commentToken.next != null) {
- expect(commentToken.next.previousToken, commentToken);
+ expect(commentToken.next.previous, commentToken);
}
commentToken = commentToken.next;
}

Powered by Google App Engine
This is Rietveld 408576698