Class: CaseNode
Implements
Constructors
new CaseNode()
new CaseNode(
token,whens,default_?):CaseNode
Parameters
• token: Token
The token that started this node. Used to add line and column numbers to error messages.
• whens: ConditionalAlternative[]
• default_?: BlockNode
Returns
Defined in
Properties
default_?
readonlyoptionaldefault_:BlockNode
Defined in
forceOutput
forceOutput:
boolean=false
Indicates that nodes that do automatic whitespace suppression should output this node regardless of its contents.
Implementation of
Defined in
token
readonlytoken:Token
The token that started this node. Used to add line and column numbers to error messages.
Implementation of
Defined in
whens
readonlywhens:ConditionalAlternative[]
Defined in
Methods
children()
children():
ChildNode[]
Return an array of child nodes.
Returns
Implementation of
Defined in
render()
render(
context,out):Promise<void>
Render this node to the given output stream.
Parameters
• context: RenderContext
The active render context.
• out: RenderStream
The stream to output to.
Returns
Promise<void>
Implementation of
Defined in
renderSync()
renderSync(
context,out):void
A synchronous version of render.
Parameters
• context: RenderContext
• out: RenderStream
Returns
void