Class SymbolSpan

    Package: grammarkdown
    Inheritance
    Node<SyntaxKind.SymbolSpan>
    SymbolSpan

    Constructors

    constructor(symbol, next)

    Constructs a new instance of the SymbolSpan class

    Declaration
    constructor(symbol: LexicalSymbol, next: SymbolSpan | undefined);
    Parameters
    symbol
    LexicalSymbol

    next
    SymbolSpan | undefined

    Properties

    edgeCount

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

    firstChild

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

    lastChild

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

    next

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

    symbol

    Declaration
    readonly symbol: LexicalSymbol;
    Property Value
    LexicalSymbol

    Methods

    accept(visitor)

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

    Returns
    SymbolSpan

    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(symbol, next)

    Declaration
    update(symbol: LexicalSymbol, next: SymbolSpan | undefined): SymbolSpan;
    Parameters
    symbol
    LexicalSymbol

    next
    SymbolSpan | undefined

    Returns
    SymbolSpan

    Generated by DocFX