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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 2982033002: Rename FunctionDeclaration to LocalFunctionDeclaration. (Closed)
Patch Set: Documentation tweak. Created 3 years, 5 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/compiler/lib/src/parser/node_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index 623a2f9dc1cdaf24479623bb9d53b81576f19b17..ae6d8886afbe832d658f3eb176513f65773ab272 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -2427,8 +2427,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
}
@override
- void beginFunctionDeclaration(Token token) {
- debugEvent("beginNamedFunctionExpression");
+ void beginLocalFunctionDeclaration(Token token) {
+ debugEvent("beginLocalFunctionDeclaration");
enterFunction();
}
@@ -2474,8 +2474,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
}
@override
- void endFunctionDeclaration(Token endToken) {
- debugEvent("FunctionDeclaration");
+ void endLocalFunctionDeclaration(Token token) {
+ debugEvent("LocalFunctionDeclaration");
Statement body = popStatement();
AsyncMarker asyncModifier = pop();
if (functionNestingLevel != 0) {
@@ -2486,7 +2486,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
FunctionNode function = formals.addToFunction(new FunctionNode(body,
typeParameters: typeParameters, asyncMarker: asyncModifier)
..fileOffset = formals.charOffset
- ..fileEndOffset = endToken.charOffset);
+ ..fileEndOffset = token.charOffset);
exitLocalScope();
var declaration = pop();
var returnType = pop();
« no previous file with comments | « pkg/compiler/lib/src/parser/node_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698