Method | Description | |
---|---|---|
__construct ( |
||
analyzeFunctionLikeIsGenerator ( ast\Node $node ) : boolean | ||
analyzeNodeHasYield ( ast\Node $node ) | ||
visit ( ast\Node $node ) : |
||
visitCall ( ast\Node $node ) : |
||
visitCatch ( ast\Node $node ) : |
||
visitClass ( ast\Node\Decl $node ) : |
Visit a node with kind \ast\AST_CLASS | |
visitClosure ( ast\Node\Decl $node ) : |
Visit a node with kind \ast\AST_CLOSURE | |
visitForeach ( ast\Node $node ) : |
||
visitFuncDecl ( ast\Node\Decl $node ) : |
Visit a node with kind \ast\AST_FUNC_DECL | |
visitIfElem ( ast\Node $node ) : |
||
visitMethod ( ast\Node\Decl $node ) : |
Visit a node with kind \ast\AST_METHOD |
Method | Description | |
---|---|---|
getContextClass ( ) : |
||
setReturnTypeOfGenerator ( Phan\Language\Element\FunctionInterface $func, ast\Node $node ) : void | The return type of the given FunctionInterface to a Generator. |
public __construct ( |
||
$code_base | ||
$context | The context of the parser at the node for which we'd like to determine a type |
public static analyzeFunctionLikeIsGenerator ( ast\Node $node ) : boolean | ||
$node | ast\Node | A node to parse This must be called before visitReturn is called within a function. |
return | boolean | A new or an unchanged context resulting from parsing the node |
public static analyzeNodeHasYield ( ast\Node $node ) | ||
$node | ast\Node |
public visit ( ast\Node $node ) : |
||
$node | ast\Node | |
return |
public visitCall ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitCatch ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | A new or an unchanged context resulting from parsing the node |
public visitClass ( ast\Node\Decl $node ) : |
||
$node | ast\Node\Decl | A node to parse |
return | 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 |
return | A new or an unchanged context resulting from parsing the node |
public visitForeach ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | 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 |
return | A new or an unchanged context resulting from parsing the node |
public visitIfElem ( ast\Node $node ) : |
||
$node | ast\Node | A node to parse |
return | 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 |
return | A new or an unchanged context resulting from parsing the node |