Class Node

    Package: grammarkdown

    Constructors

    constructor(kind)

    Constructs a new instance of the Node class

    Declaration
    constructor(kind: TKind);
    Parameters
    kind
    TKind

    Properties

    end

    Declaration
    end: number;
    Property Value
    number

    firstChild

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

    kind

    Declaration
    readonly kind: TKind;
    Property Value
    TKind

    lastChild

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

    leadingHtmlTrivia

    Declaration
    leadingHtmlTrivia: HtmlTrivia[] | undefined;
    Property Value
    HtmlTrivia[] | undefined

    pos

    Declaration
    pos: number;
    Property Value
    number

    trailingHtmlTrivia

    Declaration
    trailingHtmlTrivia: HtmlTrivia[] | undefined;
    Property Value
    HtmlTrivia[] | undefined

    Methods

    children()

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

    forEachChild(_cbNode)

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

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

    Returns
    T | undefined

    getEnd()

    Declaration
    getEnd(): number;
    Returns
    number

    getFullStart()

    Declaration
    getFullStart(): number;
    Returns
    number

    getFullText(sourceFile)

    Declaration
    getFullText(sourceFile: SourceFile): string;
    Parameters
    sourceFile
    SourceFile

    Returns
    string

    getFullWidth()

    Declaration
    getFullWidth(): number;
    Returns
    number

    getStart(sourceFile)

    Declaration
    getStart(sourceFile?: SourceFile): number;
    Parameters
    sourceFile
    SourceFile

    Returns
    number

    getText(sourceFile)

    Declaration
    getText(sourceFile: SourceFile): string;
    Parameters
    sourceFile
    SourceFile

    Returns
    string

    getWidth(sourceFile)

    Declaration
    getWidth(sourceFile?: SourceFile): number;
    Parameters
    sourceFile
    SourceFile

    Returns
    number

    Generated by DocFX