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

Unified Diff: pkg/front_end/lib/src/fasta/parser/listener.dart

Issue 2856463004: New tests and improvements for generics in comments parsing. (Closed)
Patch Set: Created 3 years, 8 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/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index 8dbb91c69fbe43f10cf24701e36232ecd810fc4d..b6d8bd3224feb0824c72b4cadf062ef3670211c9 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -1051,6 +1051,11 @@ class Listener {
return tokenToStartReplacing;
}
+ /// A type has been just parsed, and the parser noticed that the next token
+ /// has a type substitution comment /*=T*. So, the type that has been just
+ /// parsed should be discarded, and a new type should be parsed instead.
+ void discardTypeReplacedWithCommentTypeAssign() {}
+
/// Creates a new synthetic token whose `next` pointer points to [next].
///
/// If [next] is `null`, `null` is returned.

Powered by Google App Engine
This is Rietveld 408576698