AstVisitorInterface
An interface implemented by all visitors of AstTraverser.
Tags
Table of Contents
Methods
- visit() : void
- visitAfterChildren() : void
- visitBeforeChildren() : void
Methods
visit()
public
visit(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int
visitAfterChildren()
public
visitAfterChildren(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int
visitBeforeChildren()
public
visitBeforeChildren(RootNode $rootNode, NodeInterface $node, CurrentObjectPath $currentObjectPath, int $currentDepth) : void
Parameters
- $rootNode : RootNode
- $node : NodeInterface
- $currentObjectPath : CurrentObjectPath
- $currentDepth : int