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

Unified Diff: pkg/front_end/lib/src/fasta/parser/listener.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
Index: pkg/front_end/lib/src/fasta/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index 198afd3a502680218151fa7e378122d134241df2..7cf522b937660c2e7b175dfc1356e5e810a1a0f7 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -275,7 +275,8 @@ class Listener {
logEvent("NamedFunctionExpression");
}
- void beginFunctionDeclaration(Token token) {}
+ /// Handle the beginning of a local function declaration.
+ void beginLocalFunctionDeclaration(Token token) {}
/// A function declaration.
///
@@ -288,7 +289,7 @@ class Listener {
/// - Initializers
/// - Async modifier
/// - Function body (block or arrow expression).
- void endFunctionDeclaration(Token endToken) {
+ void endLocalFunctionDeclaration(Token endToken) {
logEvent("FunctionDeclaration");
}
@@ -332,13 +333,13 @@ class Listener {
/// - Metadata
/// - Return type
/// - Name (identifier)
- /// - Template variables (type variables to the template)
+ /// - Alias type variables
/// - Formal parameters
///
/// If [equals] is not null, then the have the following substructures:
/// - Metadata
/// - Name (identifier)
- /// - Template variables (type variables to the template)
+ /// - Alias type variables
/// - Type (FunctionTypeAnnotation)
void endFunctionTypeAlias(
Token typedefKeyword, Token equals, Token endToken) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698