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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/stack_listener.dart

Issue 2728773002: Fix parsing [a]sync[*] function body modifiers with Fasta. (Closed)
Patch Set: Use endExpressionFunctionBody() instead of endReturnStatement(). 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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.stack_listener; 5 library fasta.stack_listener;
6 6
7 import 'package:front_end/src/fasta/parser.dart' show ErrorKind, Listener; 7 import 'package:front_end/src/fasta/parser.dart' show ErrorKind, Listener;
8 8
9 import 'package:front_end/src/fasta/parser/identifier_context.dart' 9 import 'package:front_end/src/fasta/parser/identifier_context.dart'
10 show IdentifierContext; 10 show IdentifierContext;
(...skipping 14 matching lines...) Expand all
25 BreakTarget, 25 BreakTarget,
26 CascadeReceiver, 26 CascadeReceiver,
27 Combinators, 27 Combinators,
28 ConditionalUris, 28 ConditionalUris,
29 ConstructorReferenceContinuationAfterTypeArguments, 29 ConstructorReferenceContinuationAfterTypeArguments,
30 ContinueTarget, 30 ContinueTarget,
31 Expression, 31 Expression,
32 FieldInitializer, 32 FieldInitializer,
33 FormalParameters, 33 FormalParameters,
34 FunctionBody, 34 FunctionBody,
35 FunctionBodyAsyncToken,
36 FunctionBodyStarToken,
35 IdentifierList, 37 IdentifierList,
36 Initializers, 38 Initializers,
37 Metadata, 39 Metadata,
38 Modifiers, 40 Modifiers,
39 ParameterDefaultValue, 41 ParameterDefaultValue,
40 SwitchScope, 42 SwitchScope,
41 Type, 43 Type,
42 TypeArguments, 44 TypeArguments,
43 TypeList, 45 TypeList,
44 TypeVariable, 46 TypeVariable,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 list.setRange(0, arrayLength, array); 293 list.setRange(0, arrayLength, array);
292 return list; 294 return list;
293 } 295 }
294 296
295 void _grow() { 297 void _grow() {
296 final List newTable = new List(array.length * 2); 298 final List newTable = new List(array.length * 2);
297 newTable.setRange(0, array.length, array, 0); 299 newTable.setRange(0, array.length, array, 0);
298 array = newTable; 300 array = newTable;
299 } 301 }
300 } 302 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698