import { type StatementedNode } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";
Methods
Gets the node's statements.
Gets the node's statements with comment statements.
Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.
Gets the first statement that matches the provided condition or returns undefined if it doesn't exist.
Gets the first statement that matches the provided condition or throws if it doesn't exist.
Gets the first statement that matches the provided condition or throws if it doesn't exist.
Gets the first statement that matches the provided syntax kind or returns undefined if it doesn't exist.
Gets the first statement that matches the provided syntax kind or throws if it doesn't exist.
Add statements.
Inserts statements at the specified index.
Removes the statements at the specified index range.
Adds an class declaration as a child.
Adds class declarations as a child.
Inserts an class declaration as a child.
Inserts class declarations as a child.
Gets the direct class declaration children.
Gets a class.
Gets a class.
Gets a class or throws if it doesn't exist.
Gets a class or throws if it doesn't exist.
Adds an enum declaration as a child.
Adds enum declarations as a child.
Inserts an enum declaration as a child.
Inserts enum declarations as a child.
Gets the direct enum declaration children.
Gets an enum.
Gets an enum.
Gets an enum or throws if it doesn't exist.
Gets an enum or throws if it doesn't exist.
Adds a function declaration as a child.
Adds function declarations as a child.
Inserts an function declaration as a child.
Inserts function declarations as a child.
Gets the direct function declaration children.
Gets a function.
Gets a function.
Gets a function or throws if it doesn't exist.
Gets a function or throws if it doesn't exist.
Adds a interface declaration as a child.
Adds interface declarations as a child.
Inserts an interface declaration as a child.
Inserts interface declarations as a child.
Gets the direct interface declaration children.
Gets an interface.
Gets an interface.
Gets an interface or throws if it doesn't exist.
Gets an interface or throws if it doesn't exist.
Adds a module declaration as a child.
Adds module declarations as a child.
Inserts a module declaration as a child.
Inserts module declarations as children.
Gets the module declaration children.
Gets a module declaration child by name.
Gets a module declaration child by condition.
Gets a module declaration child by name or throws if it doesn't exist.
Gets a module declaration child by condition or throws if it doesn't exist.
Adds a type alias declaration as a child.
Adds type alias declarations as a child.
Inserts an type alias declaration as a child.
Inserts type alias declarations as a child.
Gets the direct type alias declaration children.
Gets a type alias.
Gets a type alias.
Gets a type alias or throws if it doesn't exist.
Gets a type alias or throws if it doesn't exist.
Adds a variable statement.
Adds variable statements.
Inserts a variable statement.
Inserts variable statements.
Gets the direct variable statement children.
Gets a variable statement.
Gets a variable statement.
Gets a variable statement or throws if it doesn't exist.
Gets a variable statement or throws if it doesn't exist.
Gets all the variable declarations within the variable statement children.
Gets a variable declaration.
Gets a variable declaration.
Gets a variable declaration or throws if it doesn't exist.
Gets a variable declaration or throws if it doesn't exist.
import { StatementedNode } from "https://deno.land/x/ts_morph@16.0.0/ts_morph.d.ts";