PHP Класс Phan\Parse\ParseVisitor

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

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

Метод Описание
__construct ( CodeBase $code_base, Context $context )
visitCall ( ast\Node $node ) : Context Visit a node with kind \ast\AST_CALL
visitClass ( ast\Node\Decl $node ) : Context Visit a node with kind \ast\AST_CLASS
visitClassConstDecl ( ast\Node $node ) : Context Visit a node with kind \ast\AST_CLASS_CONST_DECL
visitConstDecl ( ast\Node $node ) : Context Visit a node with kind \ast\AST_CONST
visitDeclare ( ast\Node $node ) : Context Visit a node with kind \ast\AST_DECLARE
visitEcho ( ast\Node $node ) : Context Visit a node with kind \ast\AST_ECHO
visitFuncDecl ( ast\Node\Decl $node ) : Context Visit a node with kind \ast\AST_FUNC_DECL
visitMethod ( ast\Node\Decl $node ) : Context Visit a node with kind \ast\AST_METHOD
visitMethodCall ( ast\Node $node ) : Context Visit a node with kind \ast\AST_METHOD_CALL
visitPrint ( ast\Node $node ) : Context Visit a node with kind \ast\AST_PRINT
visitPropDecl ( ast\Node $node ) : Context Visit a node with kind \ast\AST_PROP_DECL
visitReturn ( ast\Node $node ) : Context Visit a node with kind \ast\AST_RETURN
visitStaticCall ( ast\Node $node ) : Context Visit a node with kind \ast\AST_STATIC_CALL
visitUseTrait ( ast\Node $node ) : Context Visit a node with kind \ast\AST_USE_TRAIT

Приватные методы

Метод Описание
addConstant ( ast\Node $node, string $name, ast\Node | mixed $value, integer $flags ) : void
getContextClass ( ) : Clazz

Описание методов

__construct() публичный Метод

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

visitCall() публичный Метод

Visit a node with kind \ast\AST_CALL
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

visitClass() публичный Метод

Visit a node with kind \ast\AST_CLASS
public visitClass ( ast\Node\Decl $node ) : Context
$node ast\Node\Decl A node to parse
Результат Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitClassConstDecl() публичный Метод

Visit a node with kind \ast\AST_CLASS_CONST_DECL
public visitClassConstDecl ( 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

visitConstDecl() публичный Метод

Visit a node with kind \ast\AST_CONST
public visitConstDecl ( 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

visitEcho() публичный Метод

Visit a node with kind \ast\AST_ECHO
public visitEcho ( 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

visitFuncDecl() публичный Метод

Visit a node with kind \ast\AST_FUNC_DECL
public visitFuncDecl ( ast\Node\Decl $node ) : Context
$node ast\Node\Decl A node to parse
Результат Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitMethod() публичный Метод

Visit a node with kind \ast\AST_METHOD
public visitMethod ( ast\Node\Decl $node ) : Context
$node ast\Node\Decl A node to parse
Результат Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitMethodCall() публичный Метод

Visit a node with kind \ast\AST_METHOD_CALL
public visitMethodCall ( 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

visitPrint() публичный Метод

Visit a node with kind \ast\AST_PRINT
public visitPrint ( 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

visitPropDecl() публичный Метод

Visit a node with kind \ast\AST_PROP_DECL
public visitPropDecl ( 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

visitReturn() публичный Метод

Visit a node with kind \ast\AST_RETURN
public visitReturn ( 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

visitStaticCall() публичный Метод

Visit a node with kind \ast\AST_STATIC_CALL
public visitStaticCall ( 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

visitUseTrait() публичный Метод

Visit a node with kind \ast\AST_USE_TRAIT
public visitUseTrait ( 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