PHP 클래스 Phan\Analysis\ConditionVisitor

상속: extends Phan\AST\Visitor\KindVisitorImplementation
파일 보기 프로젝트 열기: etsy/phan

공개 메소드들

메소드 설명
__construct ( CodeBase $code_base, Context $context )
visit ( ast\Node $node ) : Context Default visitor for node kinds that do not have an overriding method
visitBinaryOp ( ast\Node $node ) : Context
visitCall ( ast\Node $node ) : Context Look at elements of the form is_array($v) and modify the type of the variable.
visitCoalesce ( ast\Node $node ) : Context
visitEmpty ( ast\Node $node ) : Context
visitInstanceof ( ast\Node $node ) : Context
visitIsset ( ast\Node $node ) : Context
visitUnaryOp ( ast\Node $node ) : Context

메소드 상세

__construct() 공개 메소드

public __construct ( CodeBase $code_base, Context $context )
$code_base Phan\CodeBase A code base needs to be passed in because we require it to be initialized before any classes or files are loaded.
$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

visitBinaryOp() 공개 메소드

public visitBinaryOp ( 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

visitCall() 공개 메소드

Look at elements of the form is_array($v) and modify the type of the variable.
public visitCall ( 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

visitCoalesce() 공개 메소드

public visitCoalesce ( 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

visitEmpty() 공개 메소드

public visitEmpty ( 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

visitInstanceof() 공개 메소드

public visitInstanceof ( 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

visitIsset() 공개 메소드

public visitIsset ( 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

visitUnaryOp() 공개 메소드

public visitUnaryOp ( 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