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

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

Issue 2742233002: Fix for parsing EmptyFunctionBody with Fasta. (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/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 0df837074403df545660ff6ecfbeadbe4eb2fa7d..9b1fb463807f7c62207a60634e3813e52f5c0e54 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -559,6 +559,10 @@ class Listener {
void beginReturnStatement(Token token) {}
+ void endEmptyFunctionBody(Token semicolon) {
ahe 2017/03/13 09:20:19 Overall, I think it might be simpler to add a bool
scheglov 2017/03/13 15:48:40 It depends. This way we get at least some docume
Paul Berry 2017/03/13 16:55:16 I agree that the current state of the documentatio
+ logEvent("EmptyFunctionBody");
+ }
+
void endExpressionFunctionBody(Token arrowToken, Token endToken) {
logEvent("ExpressionFunctionBody");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698