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

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

Issue 2731863002: move comment tokens into preceedingComments 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/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 68a7adb73bedfca60fac1160cc78118131396d6d..f2bddaf4494955f917dcb3951d86c9657c79d6f1 100644
--- a/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
+++ b/pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart
@@ -49,6 +49,18 @@ abstract class AbstractScanner implements Scanner {
*/
Token tail;
+ /**
+ * A pointer to the stream of comment tokens created by this scanner
+ * before they are assigned to the [Token] precedingComments field
+ * of a non-comment token. A value of `null` indicates no comment tokens.
+ */
+ Token comments;
+
+ /**
+ * A pointer to the last scanned comment token or `null` if none.
+ */
+ Token commentsTail;
+
final List<int> lineStarts;
AbstractScanner(this.includeComments, {int numberOfBytesHint})

Powered by Google App Engine
This is Rietveld 408576698