Interface IfStatementSyntaxNode<T, S>

Syntax node representing an if statement.

interface IfStatementSyntaxNode<T, S extends SyntaxNode<T> = SyntaxNode<T>> {
    alternate?: S;
    consequent: S;
    name?: string;
    test: S;
    type: IfStatement;
}

Type Parameters

Hierarchy (View Summary)

Properties

alternate?: S

The body of the else statement.s

consequent: S

The body of the if statement.

name?: string

A descriptive name for the syntax node.

test: S

The test condition of the if statement.

The type of the syntax node.