Interface IfStatementRefNode<T>

Syntax node representing an if statement.

interface IfStatementRefNode<T> {
    alternate?: RefSyntaxNode<T>;
    consequent: RefSyntaxNode<T>;
    description?: string;
    name?: string;
    range: Range;
    ref: T;
    test: RefSyntaxNode<T>;
    type: IfStatement;
}

Type Parameters

  • T

Hierarchy (View Summary)

Properties

alternate?: RefSyntaxNode<T>

The body of the else statement.s

consequent: RefSyntaxNode<T>

The body of the if statement.

description?: string

Additional description for the syntax node.

name?: string

A descriptive name for the syntax node.

range: Range

The range of the code represented by the syntax node.

ref: T

The original syntax node.

The test condition of the if statement.

The type of the syntax node.