Class RightHandSideList
Package: grammarkdown
Constructors
constructor(elements)
Constructs a new instance of the RightHandSideList
class
Declaration
constructor(elements: ReadonlyArray<RightHandSide> | undefined);
Parameters
- elements
- ReadonlyArray<RightHandSide> | undefined
Properties
edgeCount
Declaration
protected get edgeCount(): number;
Property Value
number
elements
Declaration
readonly elements: ReadonlyArray<RightHandSide> | undefined;
Property Value
ReadonlyArray<RightHandSide> | undefined
firstChild
Declaration
get firstChild(): Node | undefined;
Property Value
Node | undefined
lastChild
Declaration
get lastChild(): Node | undefined;
Property Value
Node | undefined
Methods
accept(visitor)
Declaration
protected accept(visitor: NodeVisitor): RightHandSideList;
Parameters
- visitor
- NodeVisitor
Returns
children()
Declaration
children(): IterableIterator<Node>;
Returns
IterableIterator<Node>
edgeName(offset)
Declaration
protected edgeName(offset: number): string | undefined;
Parameters
- offset
- number
Returns
string | undefined
edgeValue(offset)
Declaration
protected edgeValue(offset: number): Node | ReadonlyArray<Node> | undefined;
Parameters
- offset
- number
Returns
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(elements)
Declaration
update(elements: ReadonlyArray<RightHandSide> | undefined): RightHandSideList;
Parameters
- elements
- ReadonlyArray<RightHandSide> | undefined