interface UnaryExpression {
    argument: Expression;
    end?: null | number;
    extra?: Record<string, unknown>;
    innerComments?: null | Comment[];
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    operator: "delete" | "void" | "typeof" | "+" | "-" | "throw" | "!" | "~";
    prefix: boolean;
    range?: [number, number];
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "UnaryExpression";
}

Hierarchy (view full)

Properties

argument: Expression
end?: null | number
extra?: Record<string, unknown>
innerComments?: null | Comment[]
leadingComments?: null | Comment[]
loc?: null | SourceLocation
operator: "delete" | "void" | "typeof" | "+" | "-" | "throw" | "!" | "~"
prefix: boolean
range?: [number, number]
start?: null | number
trailingComments?: null | Comment[]
type: "UnaryExpression"