interface MaybeNamedClassDeclaration {
    body: ClassBody;
    decorators: Decorator[];
    id: null | Identifier;
    leadingComments?: Comment[];
    loc?: null | SourceLocation;
    range?: [number, number];
    superClass?: null | Expression;
    trailingComments?: Comment[];
    type: "ClassDeclaration";
}

Hierarchy (View Summary)

Properties

body: ClassBody
decorators: Decorator[]
id: null | Identifier

It is null when a class declaration is a part of the export default class statement

leadingComments?: Comment[]
loc?: null | SourceLocation
range?: [number, number]
superClass?: null | Expression
trailingComments?: Comment[]
type: "ClassDeclaration"