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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/outline_builder.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 unified diff | Download patch
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.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.outline_builder; 5 library fasta.outline_builder;
6 6
7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind; 7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind;
8 8
9 import '../parser/parser.dart' show FormalParameterType, optional; 9 import '../parser/parser.dart' show FormalParameterType, optional;
10 10
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 nativeMethodName = null; 267 nativeMethodName = null;
268 } 268 }
269 269
270 @override 270 @override
271 void handleNoFunctionBody(Token token) { 271 void handleNoFunctionBody(Token token) {
272 debugEvent("NoFunctionBody"); 272 debugEvent("NoFunctionBody");
273 push(MethodBody.Abstract); 273 push(MethodBody.Abstract);
274 } 274 }
275 275
276 @override 276 @override
277 void handleFunctionBodySkipped(Token token) { 277 void handleFunctionBodySkipped(Token token, bool isExpressionBody) {
278 debugEvent("handleFunctionBodySkipped"); 278 debugEvent("handleFunctionBodySkipped");
279 push(MethodBody.Regular); 279 push(MethodBody.Regular);
280 } 280 }
281 281
282 @override 282 @override
283 void beginMethod(Token token, Token name) { 283 void beginMethod(Token token, Token name) {
284 library.beginNestedDeclaration(name.value, hasMembers: false); 284 library.beginNestedDeclaration(name.value, hasMembers: false);
285 } 285 }
286 286
287 @override 287 @override
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 Link<Token> handleMemberName(Link<Token> identifiers) { 699 Link<Token> handleMemberName(Link<Token> identifiers) {
700 if (!isDartLibrary || identifiers.isEmpty) return identifiers; 700 if (!isDartLibrary || identifiers.isEmpty) return identifiers;
701 return removeNativeClause(identifiers); 701 return removeNativeClause(identifiers);
702 } 702 }
703 703
704 @override 704 @override
705 void debugEvent(String name) { 705 void debugEvent(String name) {
706 // printEvent(name); 706 // printEvent(name);
707 } 707 }
708 } 708 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698