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

Unified Diff: pkg/front_end/lib/src/fasta/scanner/token.dart

Issue 2739583002: add previous token field (Closed)
Patch Set: Created 3 years, 9 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/token.dart
diff --git a/pkg/front_end/lib/src/fasta/scanner/token.dart b/pkg/front_end/lib/src/fasta/scanner/token.dart
index 0c29f1c6ad0baadb7181d53042fa36e4634611a8..fff1f3cc54be1545bf04024e0315e9b53914ab6f 100644
--- a/pkg/front_end/lib/src/fasta/scanner/token.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/token.dart
@@ -29,6 +29,13 @@ abstract class Token {
Token next;
/**
+ * The previous token in the token stream.
+ * @deprecated This exists for compatibility with the Analyzer token stream
Paul Berry 2017/03/07 13:47:28 Saying "@deprecated" here doesn't have any effect
danrubel 2017/03/07 14:40:54 Good catch. That's what I meant to do. Fixed.
+ * and will be removed at some future date.
+ */
+ Token previous;
+
+ /**
* Return the first comment in the list of comments that precede this token,
* or `null` if there are no comments preceding this token. Additional
* comments can be reached by following the token stream using [next] until
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/array_based_scanner.dart ('k') | pkg/front_end/test/scanner_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698