Class LexicalGoalAssertion

    Package: grammarkdown

    Represens a lexical-goal assertion which verifies that current lexical goal is the supplied *Nonterminal*.

    [lexical goal Module]
    
    Inheritance
    AssertionBase<SyntaxKind.LexicalGoalAssertion, SyntaxKind.OpenBracketToken>
    LexicalGoalAssertion

    Constructors

    constructor(openBracketToken, lexicalKeyword, goalKeyword, symbol, closeBracketToken)

    Constructs a new instance of the LexicalGoalAssertion class

    Declaration
    constructor(openBracketToken: Token<SyntaxKind.OpenBracketToken>, lexicalKeyword: Token<SyntaxKind.LexicalKeyword>, goalKeyword: Token<SyntaxKind.GoalKeyword> | undefined, symbol: Identifier | undefined, closeBracketToken: Token<SyntaxKind.CloseBracketToken> | undefined);
    Parameters
    openBracketToken
    Token<SyntaxKind.OpenBracketToken>

    lexicalKeyword
    Token<SyntaxKind.LexicalKeyword>

    goalKeyword
    Token<SyntaxKind.GoalKeyword> | undefined

    symbol
    Identifier | undefined

    closeBracketToken
    Token<SyntaxKind.CloseBracketToken> | undefined

    Properties

    goalKeyword

    Declaration
    readonly goalKeyword: Token<SyntaxKind.GoalKeyword> | undefined;
    Property Value
    Token<SyntaxKind.GoalKeyword> | undefined

    lastChild

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

    lexicalKeyword

    Declaration
    readonly lexicalKeyword: Token<SyntaxKind.LexicalKeyword>;
    Property Value
    Token<SyntaxKind.LexicalKeyword>

    symbol

    Declaration
    readonly symbol: Identifier | undefined;
    Property Value
    Identifier | 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(symbol)

    Declaration
    update(symbol: Identifier | undefined): LexicalGoalAssertion;
    Parameters
    symbol
    Identifier | undefined

    Returns
    LexicalGoalAssertion

    Generated by DocFX