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

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

Issue 2707163002: Add preliminary support for methods to AstBuilder. (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 6100785b2b196c036231b78d5da75c53a2d9c70b..8be392c3981576b243f47ca736359b1031082413 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -452,6 +452,16 @@ class Listener {
void beginMethod(Token token, Token name) {}
+ /// Handle the end of a method declaration. Substructures:
+ /// - metadata
+ /// - modifiers
+ /// - return type
+ /// - method name (identifier, possibly qualified)
+ /// - type variables
+ /// - formal parameters
+ /// - initializers
+ /// - async marker
+ /// - body
void endMethod(Token getOrSet, Token beginToken, Token endToken) {
logEvent("Method");
}

Powered by Google App Engine
This is Rietveld 408576698