PHP Класс Phan\Analysis\ConditionVisitor

Наследование: extends Phan\AST\Visitor\KindVisitorImplementation
Показать файл Открыть проект

Открытые методы

Метод Описание
__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