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

Side by Side Diff: pkg/analyzer/lib/src/summary/fasta/summary_builder.dart

Issue 2747853002: Rename xFunctionBody to xBlockFunctionBody. Document related listener methods. (Closed)
Patch Set: Rename to handleEmptyFunctionBody() and handleExpressionFunctionBody(). 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 | « no previous file | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Logic to build unlinked summaries. 5 /// Logic to build unlinked summaries.
6 library summary.src.summary_builder; 6 library summary.src.summary_builder;
7 7
8 import 'package:front_end/src/fasta/parser/class_member_parser.dart'; 8 import 'package:front_end/src/fasta/parser/class_member_parser.dart';
9 import 'package:front_end/src/fasta/parser/identifier_context.dart'; 9 import 'package:front_end/src/fasta/parser/identifier_context.dart';
10 import 'package:front_end/src/fasta/parser/parser.dart'; 10 import 'package:front_end/src/fasta/parser/parser.dart';
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 Token covariantKeyword, Token thisKeyword, FormalParameterType kind) { 266 Token covariantKeyword, Token thisKeyword, FormalParameterType kind) {
267 debugEvent("FormalParameter"); 267 debugEvent("FormalParameter");
268 assert(ignore); 268 assert(ignore);
269 } 269 }
270 270
271 void endFormalParameters(int c, begin, end) { 271 void endFormalParameters(int c, begin, end) {
272 debugEvent("FormalParameters"); 272 debugEvent("FormalParameters");
273 assert(ignore); 273 assert(ignore);
274 } 274 }
275 275
276 void endFunctionBody(int count, Token begin, Token end) { 276 void endBlockFunctionBody(int count, Token begin, Token end) {
277 debugEvent("FunctionBody"); 277 debugEvent("BlockFunctionBody");
278 assert(ignore); 278 assert(ignore);
279 } 279 }
280 280
281 void endFunctionDeclaration(token) { 281 void endFunctionDeclaration(token) {
282 debugEvent("FunctionDeclaration"); 282 debugEvent("FunctionDeclaration");
283 _withinFunction--; 283 _withinFunction--;
284 if (ignore) return; 284 if (ignore) return;
285 _endFunction(); 285 _endFunction();
286 } 286 }
287 287
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 } 1590 }
1591 1591
1592 /// Internal representation of an initialized name. 1592 /// Internal representation of an initialized name.
1593 class _InitializedName { 1593 class _InitializedName {
1594 final String name; 1594 final String name;
1595 final UnlinkedExecutableBuilder initializer; 1595 final UnlinkedExecutableBuilder initializer;
1596 _InitializedName(this.name, this.initializer); 1596 _InitializedName(this.name, this.initializer);
1597 1597
1598 toString() => "II:" + (initializer != null ? "$name = $initializer" : name); 1598 toString() => "II:" + (initializer != null ? "$name = $initializer" : name);
1599 } 1599 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698