Skip to main content
Module

x/ts_morph/mod.ts>ForStatement

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

Methods

getCondition(): Expression | undefined

Gets this for statement's condition or undefined if none exists.

Gets this for statement's condition or throws if none exists.

getIncrementor(): Expression | undefined

Gets this for statement's incrementor.

Gets this for statement's incrementor or throws if none exists.

Gets this for statement's initializer or undefined if none exists.

Gets this for statement's initializer or throws if none exists.

getParent(): NodeParentType<ts.ForStatement>
getParentOrThrow(): NonNullable<NodeParentType<ts.ForStatement>>