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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/abstract_scanner.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/lib/src/fasta/scanner/abstract_scanner.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
index 60ebab890887079c1269e2acbffe35c4da7d5f97..20896425be2fc510f1bff297cf008b04d6be06dd 100644
--- a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
@@ -867,13 +867,13 @@ abstract class AbstractScanner implements Scanner {
*/
void appendToken(Token token) {
tail.next = token;
- tail.next.previousToken = tail;
+ tail.next.previous = tail;
tail = tail.next;
if (comments != null) {
for (CommentToken c = comments; c != null; c = c.next) {
c.parent = tail;
}
- tail.precedingCommentTokens = comments;
+ tail.precedingComments = comments;
comments = null;
commentsTail = null;
}
@@ -885,7 +885,7 @@ abstract class AbstractScanner implements Scanner {
commentsTail = comments;
} else {
commentsTail.next = newComment;
- commentsTail.next.previousToken = commentsTail;
+ commentsTail.next.previous = commentsTail;
commentsTail = commentsTail.next;
}
}

Powered by Google App Engine
This is Rietveld 408576698