classDeclaration abstract method
ClassDeclaration
classDeclaration(
- Comment? comment,
- List<
Annotation> ? metadata, - Token? abstractKeyword,
- Token? macroKeyword,
- Token? augmentKeyword,
- Token classKeyword,
- SimpleIdentifier name,
- TypeParameterList? typeParameters,
- ExtendsClause? extendsClause,
- WithClause? withClause,
- ImplementsClause? implementsClause,
- Token leftBracket,
- List<
ClassMember> members, - Token rightBracket,
Returns a newly created class declaration. Either or both of the
comment
and metadata
can be null
if the class does not have the
corresponding attribute. The abstractKeyword
can be null
if the class
is not abstract. The macroKeyword
can be null
if the class is not a
macro class. The augmentKeyword
can be null
if the class is not an
augmentation class. The typeParameters
can be null
if the class does
not have any type parameters. Any or all of the extendsClause
,
withClause
, and implementsClause
can be null
if the class does not
have the corresponding clause. The list of members
can be null
if the
class does not have any members.
Implementation
ClassDeclaration classDeclaration(
Comment? comment,
List<Annotation>? metadata,
Token? abstractKeyword,
Token? macroKeyword,
Token? augmentKeyword,
Token classKeyword,
SimpleIdentifier name,
TypeParameterList? typeParameters,
ExtendsClause? extendsClause,
WithClause? withClause,
ImplementsClause? implementsClause,
Token leftBracket,
List<ClassMember> members,
Token rightBracket);