ReverseNodeTransformer
extends
NodeTransformer
in
Reverse NodeTransformers are applied with child nodes first, then the parent node.
This is useful for NodeTransformers that need to know the state of the child nodes before transforming the parent node.
Table of Contents
Methods
- enterNode() : T
- getPriority() : int
- The higher the priority the earlier the NodeTransformer is executed.
- leaveNode() : T|null
- supports() : bool
Methods
enterNode()
public
enterNode(T $node, CompilerContext $compilerContext) : T
Parameters
- $node : T
- $compilerContext : CompilerContext
Return values
TgetPriority()
The higher the priority the earlier the NodeTransformer is executed.
public
getPriority() : int
Return values
intleaveNode()
public
leaveNode(T $node, CompilerContext $compilerContext) : T|null
Parameters
- $node : T
- $compilerContext : CompilerContext
Return values
T|nullsupports()
public
supports(Node $node) : bool
Parameters
- $node : Node