classDeclaration abstract method

ClassDeclaration classDeclaration(
  1. Comment? comment,
  2. List<Annotation>? metadata,
  3. Token? abstractKeyword,
  4. Token classKeyword,
  5. SimpleIdentifier name,
  6. TypeParameterList? typeParameters,
  7. ExtendsClause? extendsClause,
  8. WithClause? withClause,
  9. ImplementsClause? implementsClause,
  10. Token leftBracket,
  11. List<ClassMember> members,
  12. 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 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 classKeyword,
    SimpleIdentifier name,
    TypeParameterList? typeParameters,
    ExtendsClause? extendsClause,
    WithClause? withClause,
    ImplementsClause? implementsClause,
    Token leftBracket,
    List<ClassMember> members,
    Token rightBracket);