PHP 클래스 Phan\Analysis\ScopeVisitor

상속: extends Phan\AST\Visitor\KindVisitorImplementation
파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( CodeBase $code_base, Context $context )
visit ( ast\Node $node ) : Context Default visitor for node kinds that do not have an overriding method
visitDeclare ( ast\Node $node ) : Context Visit a node with kind \ast\AST_DECLARE
visitGroupUse ( ast\Node $node ) : Context Visit a node with kind \ast\AST_GROUP_USE such as use \ast\Node;.
visitNamespace ( ast\Node $node ) : Context Visit a node with kind \ast\AST_NAMESPACE
visitUse ( ast\Node $node ) : Context Visit a node with kind \ast\AST_USE such as use \ast\Node;.

비공개 메소드들

메소드 설명
aliasTargetMapFromUseNode ( ast\Node $node, string $prefix = '' ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( CodeBase $code_base, Context $context )
$code_base Phan\CodeBase The global code base holding all state
$context Phan\Language\Context The context of the parser at the node for which we'd like to determine a type

visit() 공개 메소드

Default visitor for node kinds that do not have an overriding method
public visit ( ast\Node $node ) : Context
$node ast\Node A node to parse
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitDeclare() 공개 메소드

Visit a node with kind \ast\AST_DECLARE
public visitDeclare ( ast\Node $node ) : Context
$node ast\Node A node to parse
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitGroupUse() 공개 메소드

Visit a node with kind \ast\AST_GROUP_USE such as use \ast\Node;.
public visitGroupUse ( ast\Node $node ) : Context
$node ast\Node A node to parse
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitNamespace() 공개 메소드

Visit a node with kind \ast\AST_NAMESPACE
public visitNamespace ( ast\Node $node ) : Context
$node ast\Node A node to parse
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitUse() 공개 메소드

Visit a node with kind \ast\AST_USE such as use \ast\Node;.
public visitUse ( ast\Node $node ) : Context
$node ast\Node A node to parse
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node