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

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

Issue 2723883002: Add AstBuilder support for fields. (Closed)
Patch Set: Created 3 years, 10 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 cfbbd5501e1836cc7aa02308adc593ed7661bd75..e1f28c529dcdaac5129b6277c57614e09c0b1203 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -179,8 +179,15 @@ class Listener {
logEvent("FormalParameters");
}
+ /// Handle the end of a field declaration. Substructures:
+ /// - Metadata
+ /// - Modifiers
+ /// - Type
+ /// - Variable declarations (count times)
+ ///
/// Doesn't have a corresponding begin event, use [beginMember] instead.
- void endFields(int count, Token beginToken, Token endToken) {
+ void endFields(
+ int count, Token covariantKeyword, Token beginToken, Token endToken) {
logEvent("Fields");
}

Powered by Google App Engine
This is Rietveld 408576698