Module

x/ts_morph/ts_morph.d.ts>GetAccessorDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class GetAccessorDeclaration
extends GetAccessorDeclarationBase<ts.GetAccessorDeclaration>
import { GetAccessorDeclaration } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.d.ts";

Methods

getParent(): NodeParentType<ts.GetAccessorDeclaration>
getParentOrThrow(message?: string | (() => string)): NonNullable<NodeParentType<ts.GetAccessorDeclaration>>

Gets the corresponding set accessor if one exists.

getSetAccessorOrThrow(message?: string | (() => string)): SetAccessorDeclaration

Gets the corresponding set accessor or throws if not exists.

Gets the structure equivalent to this node.

set(structure: Partial<GetAccessorDeclarationStructure>): this

Sets the node from a structure.