Class RightHandSide
Package: grammarkdown
Constructors
constructor(constraints, head, reference)
Constructs a new instance of the RightHandSide
class
Declaration
constructor(constraints: Constraints | undefined, head: SymbolSpan | undefined, reference: LinkReference | undefined);
Parameters
Properties
constraints
Declaration
readonly constraints: Constraints | undefined;
Property Value
Constraints | undefined
firstChild
Declaration
get firstChild(): Node | undefined;
Property Value
Node | undefined
head
Declaration
readonly head: SymbolSpan | undefined;
Property Value
SymbolSpan | undefined
lastChild
Declaration
get lastChild(): Node | undefined;
Property Value
Node | undefined
reference
Declaration
readonly reference: LinkReference | undefined;
Property Value
LinkReference | 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(constraints, head, reference)
Declaration
update(constraints: Constraints | undefined, head: SymbolSpan | undefined, reference: LinkReference | undefined): RightHandSide;