Class RightHandSide

    Package: grammarkdown
    Inheritance
    ProductionBodyBase<SyntaxKind.RightHandSide>
    RightHandSide

    Constructors

    constructor(constraints, head, reference)

    Constructs a new instance of the RightHandSide class

    Declaration
    constructor(constraints: Constraints | undefined, head: SymbolSpan | undefined, reference: LinkReference | undefined);
    Parameters
    constraints
    Constraints | undefined

    head
    SymbolSpan | undefined

    reference
    LinkReference | undefined

    Properties

    constraints

    Declaration
    readonly constraints: Constraints | undefined;
    Property Value
    Constraints | undefined

    edgeCount

    Declaration
    protected get edgeCount(): number;
    Property Value
    number

    firstChild

    Declaration
    get firstChild(): Node | undefined;
    Property Value
    Node | undefined

    head

    Declaration
    readonly head: SymbolSpan | undefined;
    Property Value
    SymbolSpan | undefined

    lastChild

    Declaration
    get lastChild(): Node | undefined;
    Property Value
    Node | undefined

    reference

    Declaration
    readonly reference: LinkReference | undefined;
    Property Value
    LinkReference | undefined

    Methods

    accept(visitor)

    Declaration
    protected accept(visitor: NodeVisitor): RightHandSide;
    Parameters
    visitor
    NodeVisitor

    Returns
    RightHandSide

    children()

    Declaration
    children(): IterableIterator<Node>;
    Returns
    IterableIterator<Node>

    edgeName(offset)

    Declaration
    protected edgeName(offset: number): string | undefined;
    Parameters
    offset
    number

    Returns
    string | undefined

    edgeValue(offset)

    Declaration
    protected edgeValue(offset: number): Node | ReadonlyArray<Node> | undefined;
    Parameters
    offset
    number

    Returns
    Node | ReadonlyArray<Node> | undefined

    forEachChild(cbNode)

    Declaration
    forEachChild<T>(cbNode: (node: Node) => T | undefined): T | undefined;
    Type Parameters
    T

    Parameters
    cbNode
    (node: Node) => T | undefined

    Returns
    T | undefined

    update(constraints, head, reference)

    Declaration
    update(constraints: Constraints | undefined, head: SymbolSpan | undefined, reference: LinkReference | undefined): RightHandSide;
    Parameters
    constraints
    Constraints | undefined

    head
    SymbolSpan | undefined

    reference
    LinkReference | undefined

    Returns
    RightHandSide

    Generated by DocFX