Méthode | Description | |
---|---|---|
__construct ( |
||
visit ( ast\Node $node ) : |
Default visitor for node kinds that do not have an overriding method | |
visitArray ( ast\Node $node ) : |
||
visitAssign ( ast\Node $node ) : |
||
visitAssignRef ( ast\Node $node ) : |
||
visitCall ( ast\Node $node ) : |
||
visitClassConst ( ast\Node $node ) : |
||
visitClosure ( ast\Node\Decl $node ) : |
||
visitConst ( ast\Node $node ) : |
||
visitDim ( ast\Node $node ) : |
Visit a node with kind \ast\AST_DIM | |
visitDoWhile ( ast\Node $node ) : |
||
visitEcho ( ast\Node $node ) : |
||
visitEncapsList ( ast\Node $node ) : |
||
visitExprList ( ast\Node $node ) : |
||
visitForeach ( ast\Node $node ) : |
||
visitFuncDecl ( ast\Node\Decl $node ) : |
Visit a node with kind \ast\AST_FUNC_DECL | |
visitGlobal ( ast\Node $node ) : |
Visit a node with kind \ast\AST_GLOBAL | |
visitIfElem ( ast\Node $node ) : |
||
visitInstanceof ( ast\Node $node ) : |
||
visitList ( ast\Node $node ) : |
||
visitMethod ( ast\Node\Decl $node ) : |
||
visitMethodCall ( ast\Node $node ) : |
||
visitNew ( ast\Node $node ) : |
||
visitPrint ( ast\Node $node ) : |
||
visitProp ( ast\Node $node ) : |
Visit a node with kind \ast\AST_PROP | |
visitPropDecl ( ast\Node $node ) : |
||
visitReturn ( ast\Node $node ) : |
||
visitStatic ( ast\Node $node ) : |
||
visitStaticCall ( ast\Node $node ) : |
||
visitStaticProp ( ast\Node $node ) : |
||
visitSwitch ( ast\Node $node ) : |
||
visitSwitchCase ( ast\Node $node ) : |
||
visitVar ( ast\Node $node ) : |
||
visitWhile ( ast\Node $node ) : |
Méthode | Description | |
---|---|---|
analyzeCallToMethod ( |
Analyze the parameters and arguments for a call to the given method or function | |
analyzeNoOp ( ast\Node $node, string $issue_type ) : null | ||
declOnlyThrows ( ast\Node\Decl $node ) : boolean |
public __construct ( |
||
$code_base | A code base needs to be passed in because we require it to be initialized before any classes or files are loaded. | |
$context | The context of the parser at the node for which we'd like to determine a type | |
$parent_node | ast\Node | The parent node of the node being analyzed |
public visit ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitArray ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitAssign ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitAssignRef ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitCall ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitClassConst ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitClosure ( ast\Node\Decl $node ) : |
||
$node | ast\Node\Decl | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitConst ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitDim ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitDoWhile ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitEcho ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitEncapsList ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitExprList ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitForeach ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitFuncDecl ( ast\Node\Decl $node ) : |
||
$node | ast\Node\Decl | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitGlobal ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitIfElem ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitInstanceof ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitList ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitMethod ( ast\Node\Decl $node ) : |
||
$node | ast\Node\Decl | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitMethodCall ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitNew ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitPrint ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitProp ( ast\Node $node ) : |
||
$node | ast\Node | A node of the type indicated by the method name that we'd like to figure out the type that it produces. |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitPropDecl ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitReturn ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitStatic ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitStaticCall ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitStaticProp ( ast\Node $node ) : |
||
$node | ast\Node | |
Résultat |
public visitSwitch ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitSwitchCase ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitVar ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |
public visitWhile ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
Résultat | A new or an unchanged context resulting from parsing the node |