Method | Description | |
---|---|---|
__construct ( |
||
visit ( ast\Node $node ) : |
Default visitor for node kinds that do not have an overriding method | |
visitDeclare ( ast\Node $node ) : |
Visit a node with kind \ast\AST_DECLARE | |
visitGroupUse ( ast\Node $node ) : |
Visit a node with kind \ast\AST_GROUP_USE such as use \ast\Node;. | |
visitNamespace ( ast\Node $node ) : |
Visit a node with kind \ast\AST_NAMESPACE | |
visitUse ( ast\Node $node ) : |
Visit a node with kind \ast\AST_USE such as use \ast\Node;. |
Method | Description | |
---|---|---|
aliasTargetMapFromUseNode ( ast\Node $node, string $prefix = '' ) : array |
public __construct ( |
||
$code_base | The global code base holding all state | |
$context | The context of the parser at the node for which we'd like to determine a type |
public visit ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitDeclare ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitGroupUse ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitNamespace ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitUse ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |