Module

x/ts_morph/mod.ts>SetAccessorDeclaration

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class SetAccessorDeclaration
extends SetAccessorDeclarationBase<ts.SetAccessorDeclaration>
import { SetAccessorDeclaration } from "https://dotland.deno.dev/x/ts_morph@21.0.0/mod.ts";

Methods

Gets the corresponding get accessor if one exists.

getGetAccessorOrThrow(message?: string | (() => string)): GetAccessorDeclaration

Gets the corresponding get accessor or throws if not exists.

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

Gets the structure equivalent to this node.

set(structure: Partial<SetAccessorDeclarationStructure>): this

Sets the node from a structure.