TypeParameterImpl constructor
TypeParameterImpl({
- required CommentImpl? comment,
- required List<
AnnotationImpl> ? metadata, - required Token name,
- required Token? extendsKeyword,
- required TypeAnnotationImpl? bound,
- Token? varianceKeyword,
Initialize a newly created type parameter. Either or both of the comment
and metadata
can be null
if the parameter does not have the
corresponding attribute. The extendsKeyword and bound
can be null
if
the parameter does not have an upper bound.
Implementation
TypeParameterImpl({
required super.comment,
required super.metadata,
required this.name,
required this.extendsKeyword,
required TypeAnnotationImpl? bound,
this.varianceKeyword,
}) : _bound = bound {
_becomeParentOf(_bound);
}