KC's Workspace
    Preparing search index...

    Interface MaybeNamedFunctionDeclaration

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

    Hierarchy (View Summary)

    Index

    Properties

    async?: boolean
    generator?: boolean
    id: Identifier | null

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

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