Interface IfStatementUpdatedNode<T>

Syntax node representing an if statement.

interface IfStatementUpdatedNode<T> {
    alternate?: UpdatedSyntaxNode<T>;
    changed?: true;
    consequent: UpdatedSyntaxNode<T>;
    created?: true;
    description?: string;
    name?: string;
    range?: Range;
    ref?: T;
    removed?: true;
    test: UpdatedSyntaxNode<T>;
    type: IfStatement;
}

Type Parameters

  • T

Hierarchy (View Summary)

Properties

alternate?: UpdatedSyntaxNode<T>

The body of the else statement.s

changed?: true

Wether the syntax node has been updated.

consequent: UpdatedSyntaxNode<T>

The body of the if statement.

created?: true

Wether the syntax node has been added.

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.

removed?: true

Wether the syntax node has been removed.

The test condition of the if statement.

The type of the syntax node.