Class PlaceholderSymbol
Package: grammarkdown
Represents a placeholder symbol (@
) used in some grammars.
Constructors
constructor(placeholderToken)
Constructs a new instance of the PlaceholderSymbol
class
Declaration
constructor(placeholderToken: Token<SyntaxKind.AtToken>);
Parameters
- placeholderToken
- Token<SyntaxKind.AtToken>
Properties
firstChild
Declaration
get firstChild(): Node | undefined;
Property Value
Node | undefined
lastChild
Declaration
get lastChild(): Node | undefined;
Property Value
Node | undefined
placeholderToken
Declaration
readonly placeholderToken: Token<SyntaxKind.AtToken>;
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