Home Reference Source Repository
import {ForStatement} from 'esast/src/ast.js'
public class | source

ForStatement

Extends:

NodeStatement → ForStatement

for (init; test; update) body Not to be confused with ForInStatement or ForOfStatement.

Constructor Summary

Public Constructor
public

constructor(init: *, test: *, update: *, body: *)

Member Summary

Public Members
public
public

init: VariableDeclaration | Expression

public
public

Inherited Summary

From class Node
public get

type: *

For compatibility with other AST representations, all Node instances have a 'type' property that is the name of that type.
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Constructors

public constructor(init: *, test: *, update: *, body: *) source

Params:

NameTypeAttributeDescription
init *
test *
update *
body *

Public Members

public body: Statement source

public init: VariableDeclaration | Expression source

public test: Expression source

public update: Expression source