Property | Type | Description | |
---|---|---|---|
$aliases | Map of format [aliasType => [aliasName => originalName]] | ||
$errorHandler | Error handler | ||
$namespace | Current namespace | ||
$preserveOriginalNames | Whether to preserve original names |
Method | Description | |
---|---|---|
__construct ( PhpParser\ErrorHandler $errorHandler = null, array $options = [] ) | Constructs a name resolution visitor. | |
beforeTraverse ( array $nodes ) | ||
enterNode ( PhpParser\Node $node ) |
Method | Description | |
---|---|---|
addAlias ( |
||
addNamespacedName ( PhpParser\Node $node ) | ||
resetState ( |
||
resolveClassName ( |
||
resolveOtherName ( |
Method | Description | |
---|---|---|
resolveSignature ( |
public __construct ( PhpParser\ErrorHandler $errorHandler = null, array $options = [] ) | ||
$errorHandler | PhpParser\ErrorHandler | Error handler |
$options | array | Options |
protected addAlias ( |
||
$use | ||
$prefix |
protected addNamespacedName ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected resetState ( |
||
$namespace |
protected resolveClassName ( |
||
$name |
protected resolveOtherName ( |
||
$name |
protected $aliases |