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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.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/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index 4fa5e405b50d18bf489fc09854bce57110b88b90..c95b1f248d9e4cdd5fb09302de77a5bef3d20c45 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -2024,7 +2024,7 @@ class Parser {
if (!allowAbstract) {
reportRecoverableError(token, ErrorKind.ExpectedBody);
}
- listener.endFunctionBody(0, null, token);
+ listener.endEmptyFunctionBody(token);
return token;
} else if (optional('=>', token)) {
Token begin = token;

Powered by Google App Engine
This is Rietveld 408576698