Module

x/ts_morph/mod.ts>GetAccessorDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class GetAccessorDeclaration
extends GetAccessorDeclarationBase<ts.GetAccessorDeclaration>
import { GetAccessorDeclaration } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.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.