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

Unified Diff: pkg/front_end/lib/src/incremental/unlinked_unit.dart

Issue 2994973002: Implement type variables on local function declarations and expressions. (Closed)
Patch Set: Update expectation files after adding copyright. Created 3 years, 4 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | pkg/front_end/testcases/arrow_function.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/incremental/unlinked_unit.dart
diff --git a/pkg/front_end/lib/src/incremental/unlinked_unit.dart b/pkg/front_end/lib/src/incremental/unlinked_unit.dart
index e074daff1e23b83f3a8da9e22d3f26af5fe1f5c6..503fb5968a9cc51aa4805d546d32695370b5e33b 100644
--- a/pkg/front_end/lib/src/incremental/unlinked_unit.dart
+++ b/pkg/front_end/lib/src/incremental/unlinked_unit.dart
@@ -110,13 +110,14 @@ class _BodySkippingParser extends Parser {
_BodySkippingParser() : super(new Listener());
@override
- Token parseFunctionBody(Token token, bool isExpression, bool allowAbstract) {
+ Token parseFunctionBody(
+ Token token, bool ofFunctionExpression, bool allowAbstract) {
if (identical('{', token.lexeme)) {
Token close = skipBlock(token);
bodyRanges.add(new _BodyRange(token.charOffset, close.charOffset));
- return isExpression ? close.next : close;
+ return ofFunctionExpression ? close.next : close;
}
- return super.parseFunctionBody(token, isExpression, allowAbstract);
+ return super.parseFunctionBody(token, ofFunctionExpression, allowAbstract);
}
Token parseMixinApplicationRest(Token token) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | pkg/front_end/testcases/arrow_function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698