|
Jobbuddy
|
Fonctions membres publiques | |
| __construct (private int $optimizers=-1,) | |
| enterNode (Node $node, Environment $env) | |
| leaveNode (Node $node, Environment $env) | |
| getPriority () | |
Champs de données | |
| const | OPTIMIZE_ALL = -1 |
| const | OPTIMIZE_NONE = 0 |
| const | OPTIMIZE_FOR = 2 |
| const | OPTIMIZE_RAW_FILTER = 4 |
| const | OPTIMIZE_TEXT_NODES = 8 |
Tries to optimize the AST.
This visitor is always the last registered one.
You can configure which optimizations you want to activate via the optimizer mode.
| __construct | ( | private int | $optimizers = -1 | ) |
| int | $optimizers | The optimizer mode |
| enterNode | ( | Node | $node, |
| Environment | $env ) |
Called before child nodes are visited.
Implémente NodeVisitorInterface.
| getPriority | ( | ) |
Returns the priority for this visitor.
Priority should be between -10 and 10 (0 is the default).
Implémente NodeVisitorInterface.
| leaveNode | ( | Node | $node, |
| Environment | $env ) |
Called after child nodes are visited.
Implémente NodeVisitorInterface.