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

Unified Diff: pkg/front_end/lib/src/fasta/parser/listener.dart

Issue 2969053002: Implement type variables on old style function-typed formal parameters. (Closed)
Patch Set: Add comment. 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 48eae4237badf88de4571653ccddff86d8253ee6..503f00f7c88cbd4e4d8ad6d1aa996d2a82011096 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -822,17 +822,15 @@ class Listener {
logEvent("ConstExpression");
}
+ /// Handle the start of a function typed formal parameter. Substructures:
+ /// - type variables
void beginFunctionTypedFormalParameter(Token token) {}
/// Handle the end of a function typed formal parameter. Substructures:
- /// - metadata
- /// - modifiers
+ /// - type variables
/// - return type
- /// - parameter name (simple identifier)
- /// - type parameters
/// - formal parameters
- void endFunctionTypedFormalParameter(
- Token thisKeyword, FormalParameterType kind) {
+ void endFunctionTypedFormalParameter() {
logEvent("FunctionTypedFormalParameter");
}
@@ -1054,7 +1052,7 @@ class Listener {
return token;
}
- /// Matches a generic comment type parameters or type arguments and injects
+ /// Matches a generic comment type variables or type arguments and injects
/// them into the token stream before the given [token].
Token injectGenericCommentTypeList(Token token) {
return token;
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_function_type_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