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

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

Issue 2738053010: Add an argument to handleFunctionBodySkipped. (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 4b24296358c7d77db910c1721c10d482b71aec53..3388c86c2a7f1d6e98dc9e1273acabd136cb7c07 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -2007,14 +2007,16 @@ class Parser {
if (identical(value, '=>')) {
token = parseExpression(token.next);
expectSemicolon(token);
+ listener.handleFunctionBodySkipped(token, true);
} else if (identical(value, '=')) {
reportRecoverableError(token, ErrorKind.ExpectedBody);
token = parseExpression(token.next);
expectSemicolon(token);
+ listener.handleFunctionBodySkipped(token, true);
} else {
token = skipBlock(token);
+ listener.handleFunctionBodySkipped(token, false);
}
- listener.handleFunctionBodySkipped(token);
}
return token;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698