interface FunctionDeclaration {
    async?: boolean;
    body: BlockStatement;
    generator?: boolean;
    id: Identifier;
    leadingComments?: Comment[];
    loc?: null | SourceLocation;
    params: Pattern[];
    range?: [number, number];
    trailingComments?: Comment[];
    type: "FunctionDeclaration";
}

Hierarchy (View Summary)

Properties

async?: boolean
generator?: boolean

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

leadingComments?: Comment[]
loc?: null | SourceLocation
params: Pattern[]
range?: [number, number]
trailingComments?: Comment[]
type: "FunctionDeclaration"