MoveAnchorTransformer
in package
implements
NodeTransformer
FinalYes
Table of Contents
Interfaces
Properties
- $seen : WeakMap<AnchorNode, true>
Methods
- __construct() : mixed
- enterNode() : T
- getPriority() : int
- The higher the priority the earlier the NodeTransformer is executed.
- leaveNode() : T|null
- supports() : bool
- attemptMoveToNeighbour() : AnchorNode|null
- findNextSection() : TreeNode<string|int, Node>|null
Properties
$seen
private
WeakMap<AnchorNode, true>
$seen
Methods
__construct()
public
__construct() : mixed
enterNode()
public
enterNode(Node $node, CompilerContextInterface $compilerContext) : T
Parameters
- $node : Node
- $compilerContext : CompilerContextInterface
Return values
TgetPriority()
The higher the priority the earlier the NodeTransformer is executed.
public
getPriority() : int
Return values
intleaveNode()
public
leaveNode(Node $node, CompilerContextInterface $compilerContext) : T|null
Parameters
- $node : Node
- $compilerContext : CompilerContextInterface
Return values
T|nullsupports()
public
supports(Node $node) : bool
Parameters
- $node : Node
Return values
boolattemptMoveToNeighbour()
private
attemptMoveToNeighbour(TreeNode<string|int, Node> $parent, int $position, AnchorNode $node) : AnchorNode|null
Parameters
- $parent : TreeNode<string|int, Node>
- $position : int
- $node : AnchorNode
Return values
AnchorNode|nullfindNextSection()
private
findNextSection(TreeNode<string|int, Node> $parent, int $position) : TreeNode<string|int, Node>|null