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

Unified Diff: pkg/compiler/lib/src/parser/node_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/compiler/lib/src/parser/node_listener.dart
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index 53f069a440e195bb70754da44a0bb5586c1e45ef..c31fe37821ced7b32f929cbea3d6769786cfff45 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -302,6 +302,10 @@ class NodeListener extends ElementListener {
pushNode(new RedirectingFactoryBody(beginToken, endToken, popNode()));
}
+ void endEmptyFunctionBody(Token semicolon) {
+ endFunctionBody(0, null, semicolon);
+ }
+
void endExpressionFunctionBody(Token arrowToken, Token endToken) {
endReturnStatement(true, arrowToken, endToken);
}

Powered by Google App Engine
This is Rietveld 408576698