Module

x/ts_morph/mod.ts>VariableStatement

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

Methods

Add a variable declaration to the statement.

Adds variable declarations to the statement.

Gets the variable declaration kind.

Gets the variable declaration kind keywords.

Get variable declaration list.

Get the variable declarations.

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

Gets the structure equivalent to this node.

Inserts a variable declaration at the specified index within the statement.

Inserts variable declarations at the specified index within the statement.

set(structure: Partial<VariableStatementStructure>): this

Sets the node from a structure.

Sets the variable declaration kind.