ClassTypeAliasImpl constructor
ClassTypeAliasImpl({
- required CommentImpl? comment,
- required List<
AnnotationImpl> ? metadata, - required Token typedefKeyword,
- required Token name,
- required TypeParameterListImpl? typeParameters,
- required Token equals,
- required Token? abstractKeyword,
- required Token? macroKeyword,
- required Token? inlineKeyword,
- required Token? sealedKeyword,
- required Token? augmentKeyword,
- required Token? mixinKeyword,
- required NamedTypeImpl superclass,
- required WithClauseImpl withClause,
- required ImplementsClauseImpl? implementsClause,
- required Token semicolon,
Initialize a newly created class type alias. Either or both of the
comment
and metadata
can be null
if the class type alias does not
have the corresponding attribute. The typeParameters
can be null
if
the class does not have any type parameters. The abstractKeyword can be
null
if the class is not abstract. The implementsClause
can be null
if the class does not implement any interfaces.
Implementation
ClassTypeAliasImpl({
required super.comment,
required super.metadata,
required super.typedefKeyword,
required super.name,
required TypeParameterListImpl? typeParameters,
required this.equals,
required this.abstractKeyword,
required this.macroKeyword,
required this.inlineKeyword,
required this.sealedKeyword,
required this.augmentKeyword,
required this.mixinKeyword,
required NamedTypeImpl superclass,
required WithClauseImpl withClause,
required ImplementsClauseImpl? implementsClause,
required super.semicolon,
}) : _typeParameters = typeParameters,
_superclass = superclass,
_withClause = withClause,
_implementsClause = implementsClause {
_becomeParentOf(_typeParameters);
_becomeParentOf(_superclass);
_becomeParentOf(_withClause);
_becomeParentOf(_implementsClause);
}