interface Program {
    body: Statement[];
    directives: Directive[];
    end?: null | number;
    extra?: Record<string, unknown>;
    innerComments?: null | Comment[];
    interpreter?: null | InterpreterDirective;
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    range?: [number, number];
    sourceType: "module" | "script";
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "Program";
}

Hierarchy (view full)

Properties

body: Statement[]
directives: Directive[]
end?: null | number
extra?: Record<string, unknown>
innerComments?: null | Comment[]
interpreter?: null | InterpreterDirective
leadingComments?: null | Comment[]
loc?: null | SourceLocation
range?: [number, number]
sourceType: "module" | "script"
start?: null | number
trailingComments?: null | Comment[]
type: "Program"