TypeParameterImpl constructor

TypeParameterImpl({
  1. required CommentImpl? comment,
  2. required List<AnnotationImpl>? metadata,
  3. required Token name,
  4. required Token? extendsKeyword,
  5. required TypeAnnotationImpl? bound,
  6. 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);
}