Jobbuddy
Chargement...
Recherche...
Aucune correspondance
Référence de la classe OptimizerNodeVisitor
Graphe d'héritage de OptimizerNodeVisitor:
NodeVisitorInterface

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

Description détaillée

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.

Auteur
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( private int $optimizers = -1)
Paramètres
int$optimizersThe optimizer mode

Documentation des fonctions membres

◆ enterNode()

enterNode ( Node $node,
Environment $env )

Called before child nodes are visited.

Renvoie
Node The modified node

Implémente NodeVisitorInterface.

◆ getPriority()

getPriority ( )

Returns the priority for this visitor.

Priority should be between -10 and 10 (0 is the default).

Renvoie
int The priority level

Implémente NodeVisitorInterface.

◆ leaveNode()

leaveNode ( Node $node,
Environment $env )

Called after child nodes are visited.

Renvoie
Node|null The modified node or null if the node must be removed

Implémente NodeVisitorInterface.


La documentation de cette classe a été générée à partir du fichier suivant :