Guides

ReverseNodeTransformer extends NodeTransformer

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

getPriority()

The higher the priority the earlier the NodeTransformer is executed.

public getPriority() : int
Return values
int

supports()

public supports(Node $node) : bool
Parameters
$node : Node
Tags
psalm-assert-if-true

T $node

Return values
bool
On this page

Search results