Class SymbolSpan
Package: grammarkdown
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
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
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, next)
Declaration
update(symbol: LexicalSymbol, next: SymbolSpan | undefined): SymbolSpan;
Parameters
- symbol
- LexicalSymbol
- next
- SymbolSpan | undefined