Class: CaptureNode
Implements
Constructors
new CaptureNode()
new CaptureNode(
token
,name
,block
):CaptureNode
Parameters
• token: Token
The token that started this node. Used to add line and column numbers to error messages.
• name: string
• block: BlockNode
Returns
Defined in
src/builtin/tags/capture.ts:45
Properties
block
readonly
block:BlockNode
Defined in
src/builtin/tags/capture.ts:48
captureOutput
readonly
captureOutput:true
=true
Indicates that a node will never produce an output, even if it has output statement child nodes.
Implementation of
Defined in
src/builtin/tags/capture.ts:44
name
readonly
name:string
Defined in
src/builtin/tags/capture.ts:47
token
readonly
token:Token
The token that started this node. Used to add line and column numbers to error messages.
Implementation of
Defined in
src/builtin/tags/capture.ts:46
Methods
assign()
protected
assign(context
,buffer
):void
Parameters
• context: RenderContext
• buffer: RenderStream
Returns
void
Defined in
src/builtin/tags/capture.ts:51
children()
children():
ChildNode
[]
Return an array of child nodes.
Returns
Implementation of
Defined in
src/builtin/tags/capture.ts:72
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
src/builtin/tags/capture.ts:57
renderSync()
renderSync(
context
,out
):void
A synchronous version of render.
Parameters
• context: RenderContext
• out: RenderStream
Returns
void