PHP Class Phan\Analysis\ConditionVisitor

Inheritance: extends Phan\AST\Visitor\KindVisitorImplementation
Show file Open project: etsy/phan

Public Methods

Method Description
__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

Method Details

__construct() public method

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() public method

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
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitBinaryOp() public method

public visitBinaryOp ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitCall() public method

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
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitCoalesce() public method

public visitCoalesce ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitEmpty() public method

public visitEmpty ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitInstanceof() public method

public visitInstanceof ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitIsset() public method

public visitIsset ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitUnaryOp() public method

public visitUnaryOp ( ast\Node $node ) : Context
$node ast\Node A node to parse
return Phan\Language\Context A new or an unchanged context resulting from parsing the node