Class ButNotSymbol

    Package: grammarkdown

    The `but not` operator allows you to reference a *Nonterminal* on the left, excluding some part of that production.

    A but not B
    
    Inheritance
    LexicalSymbolBase<SyntaxKind.ButNotSymbol>
    ButNotSymbol

    Constructors

    constructor(left, butKeyword, notKeyword, right)

    Constructs a new instance of the ButNotSymbol class

    Declaration
    constructor(left: LexicalSymbol, butKeyword: Token<SyntaxKind.ButKeyword> | undefined, notKeyword: Token<SyntaxKind.NotKeyword> | undefined, right: LexicalSymbol | undefined);
    Parameters
    left
    LexicalSymbol

    butKeyword
    Token<SyntaxKind.ButKeyword> | undefined

    notKeyword
    Token<SyntaxKind.NotKeyword> | undefined

    right
    LexicalSymbol | undefined

    Properties

    butKeyword

    Declaration
    readonly butKeyword: Token<SyntaxKind.ButKeyword> | undefined;
    Property Value
    Token<SyntaxKind.ButKeyword> | undefined

    firstChild

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

    lastChild

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

    left

    Declaration
    readonly left: LexicalSymbol;
    Property Value
    LexicalSymbol

    notKeyword

    Declaration
    readonly notKeyword: Token<SyntaxKind.NotKeyword> | undefined;
    Property Value
    Token<SyntaxKind.NotKeyword> | undefined

    right

    Declaration
    readonly right: LexicalSymbol | undefined;
    Property Value
    LexicalSymbol | 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(left, right)

    Declaration
    update(left: LexicalSymbol, right: LexicalSymbol | undefined): ButNotSymbol;
    Parameters
    left
    LexicalSymbol

    right
    LexicalSymbol | undefined

    Returns
    ButNotSymbol

    Generated by DocFX