Class Production

    Package: grammarkdown
    Inheritance
    SourceElementBase<SyntaxKind.Production>
    Production

    Constructors

    constructor(name, parameterList, colonToken, body)

    Constructs a new instance of the Production class

    Declaration
    constructor(name: Identifier, parameterList: ParameterList | undefined, colonToken: Token<ProductionSeperatorKind> | undefined, body: ProductionBody | undefined);
    Parameters
    name
    Identifier

    parameterList
    ParameterList | undefined

    colonToken
    Token<ProductionSeperatorKind> | undefined

    body
    ProductionBody | undefined

    Properties

    body

    Declaration
    readonly body: ProductionBody | undefined;
    Property Value
    ProductionBody | undefined

    colonToken

    Declaration
    readonly colonToken: Token<ProductionSeperatorKind> | undefined;
    Property Value
    Token<ProductionSeperatorKind> | undefined

    firstChild

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

    lastChild

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

    name

    Declaration
    readonly name: Identifier;
    Property Value
    Identifier

    parameterList

    Declaration
    readonly parameterList: ParameterList | undefined;
    Property Value
    ParameterList | 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

    update(name, parameterList, body)

    Declaration
    update(name: Identifier, parameterList: ParameterList | undefined, body: ProductionBody | undefined): Production;
    Parameters
    name
    Identifier

    parameterList
    ParameterList | undefined

    body
    ProductionBody | undefined

    Returns
    Production

    Generated by DocFX