Skip to main content
Module

x/deno2node/src/deps.deno.ts>ForStatement

Compile your Deno project to run on Node.js.
Latest
class ForStatement
extends ForStatementBase<ts.ForStatement>
import { ForStatement } from "https://deno.land/x/deno2node@v1.12.0/src/deps.deno.ts";

Methods

getCondition(): Expression | undefined

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

getConditionOrThrow(message?: string | (() => string)): Expression<ts.Expression>

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

getIncrementor(): Expression | undefined

Gets this for statement's incrementor.

getIncrementorOrThrow(message?: string | (() => string)): Expression<ts.Expression>

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

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

getInitializerOrThrow(message?: string | (() => string)): Expression<ts.Expression> | VariableDeclarationList

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

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