dispatch()
dispatch(array $node, mixed $value) : mixed
Recursively traverses an AST using depth-first, pre-order traversal.
The evaluation logic for each node type is embedded into a large switch
statement to avoid the cost of "double dispatch".
Parameters
Returns
mixed
—