interface MethodDefinition {
    computed: boolean;
    key: Expression | PrivateIdentifier;
    kind: "get" | "set" | "constructor" | "method";
    leadingComments?: Comment[];
    loc?: null | SourceLocation;
    range?: [number, number];
    static: boolean;
    trailingComments?: Comment[];
    type: "MethodDefinition";
    value: FunctionExpression;
}

Hierarchy (View Summary)

Properties

computed: boolean
kind: "get" | "set" | "constructor" | "method"
leadingComments?: Comment[]
loc?: null | SourceLocation
range?: [number, number]
static: boolean
trailingComments?: Comment[]
type: "MethodDefinition"