@@ -77,7 +77,7 @@ class TargetKind {
77
77
static const mixinType = TargetKind ._('mixins' , 'mixinType' );
78
78
79
79
/// Indicates that an annotation is valid on any formal parameter declaration,
80
- /// whether it's in a function, method, constructor, or closure .
80
+ /// whether it's in a function (named or anonymous) , method, or constructor .
81
81
static const parameter = TargetKind ._('parameters' , 'parameter' );
82
82
83
83
/// Indicates that an annotation is valid on any setter declaration, both
@@ -99,6 +99,12 @@ class TargetKind {
99
99
/// Indicates that an annotation is valid on any typedef declaration.`
100
100
static const typedefType = TargetKind ._('typedefs' , 'typedefType' );
101
101
102
+ /// Indicates that an annotation is valid on any type parameter declaration,
103
+ /// whether it's on a class, enum, function type, function, mixin, extension,
104
+ /// extension type, or typedef.
105
+ static const typeParameter = TargetKind ._(
106
+ 'type parameters (classes, enums, mixins, or typedefs)' , 'typeParameter' );
107
+
102
108
/// All current [TargetKind] values of targets to
103
109
/// which an annotation can be applied.
104
110
static const values = [
@@ -116,6 +122,7 @@ class TargetKind {
116
122
setter,
117
123
topLevelVariable,
118
124
type,
125
+ typeParameter,
119
126
typedefType,
120
127
];
121
128
0 commit comments