$namespace
$namespace : null|\PhpParser\Node\Name
$namespace : null|\PhpParser\Node\Name
$errorHandler : \PhpParser\ErrorHandler
beforeTraverse(array $nodes) : null|array<mixed,\PhpParser\Node>
Called once before traversal.
Return value semantics:
array | $nodes | Array of nodes |
Array of nodes
enterNode(\PhpParser\Node $node) : null|integer|\PhpParser\Node
Called when entering a node.
Return value semantics:
\PhpParser\Node | $node | Node |
Node
leaveNode(\PhpParser\Node $node) : null|false|integer|\PhpParser\Node|array<mixed,\PhpParser\Node>
Called when leaving a node.
Return value semantics:
\PhpParser\Node | $node | Node |
Node
afterTraverse(array $nodes) : null|array<mixed,\PhpParser\Node>
Called once after traversal.
Return value semantics:
array | $nodes | Array of nodes |
Array of nodes
__construct(\PhpParser\ErrorHandler|null $errorHandler = null, array $options = array())
Constructs a name resolution visitor.
Options: If "preserveOriginalNames" is enabled, an "originalName" attribute will be added to all name nodes that underwent resolution.
\PhpParser\ErrorHandler|null | $errorHandler | Error handler |
array | $options | Options |
resetState(\PhpParser\Node\Name $namespace = null)
\PhpParser\Node\Name | $namespace |
addAlias(\PhpParser\Node\Stmt\UseUse $use, $type, \PhpParser\Node\Name $prefix = null)
\PhpParser\Node\Stmt\UseUse | $use | |
$type | ||
\PhpParser\Node\Name | $prefix |
resolveClassName(\PhpParser\Node\Name $name)
\PhpParser\Node\Name | $name |
resolveOtherName(\PhpParser\Node\Name $name, $type)
\PhpParser\Node\Name | $name | |
$type |
addNamespacedName(\PhpParser\Node $node)
\PhpParser\Node | $node |
resolveSignature(\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Expr\Closure $node)
\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Expr\Closure | $node |