PHP 클래스 Phan\Analysis\PostOrderAnalysisVisitor

상속: extends Phan\AST\AnalysisVisitor
파일 보기 프로젝트 열기: etsy/phan

공개 메소드들

메소드 설명
__construct ( CodeBase $code_base, Context $context, ast\Node $parent_node = null )
visit ( ast\Node $node ) : Context Default visitor for node kinds that do not have an overriding method
visitArray ( ast\Node $node ) : Context
visitAssign ( ast\Node $node ) : Context
visitAssignRef ( ast\Node $node ) : Context
visitCall ( ast\Node $node ) : Context
visitClassConst ( ast\Node $node ) : Context
visitClosure ( ast\Node\Decl $node ) : Context
visitConst ( ast\Node $node ) : Context
visitDim ( ast\Node $node ) : Context Visit a node with kind \ast\AST_DIM
visitDoWhile ( ast\Node $node ) : Context
visitEcho ( ast\Node $node ) : Context
visitEncapsList ( ast\Node $node ) : Context
visitExprList ( ast\Node $node ) : Context
visitForeach ( ast\Node $node ) : Context
visitFuncDecl ( ast\Node\Decl $node ) : Context Visit a node with kind \ast\AST_FUNC_DECL
visitGlobal ( ast\Node $node ) : Context Visit a node with kind \ast\AST_GLOBAL
visitIfElem ( ast\Node $node ) : Context
visitInstanceof ( ast\Node $node ) : Context
visitList ( ast\Node $node ) : Context
visitMethod ( ast\Node\Decl $node ) : Context
visitMethodCall ( ast\Node $node ) : Context
visitNew ( ast\Node $node ) : Context
visitPrint ( ast\Node $node ) : Context
visitProp ( ast\Node $node ) : Context Visit a node with kind \ast\AST_PROP
visitPropDecl ( ast\Node $node ) : Context
visitReturn ( ast\Node $node ) : Context
visitStatic ( ast\Node $node ) : Context
visitStaticCall ( ast\Node $node ) : Context
visitStaticProp ( ast\Node $node ) : Context
visitSwitch ( ast\Node $node ) : Context
visitSwitchCase ( ast\Node $node ) : Context
visitVar ( ast\Node $node ) : Context
visitWhile ( ast\Node $node ) : Context

비공개 메소드들

메소드 설명
analyzeCallToMethod ( CodeBase $code_base, Phan\Language\Element\FunctionInterface $method, ast\Node $node ) : null 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

메소드 상세

__construct() 공개 메소드

public __construct ( CodeBase $code_base, Context $context, ast\Node $parent_node = null )
$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
$parent_node ast\Node The parent node of the node being analyzed

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

visitArray() 공개 메소드

public visitArray ( 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

visitAssign() 공개 메소드

public visitAssign ( 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

visitAssignRef() 공개 메소드

public visitAssignRef ( 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() 공개 메소드

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

visitClassConst() 공개 메소드

public visitClassConst ( 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

visitClosure() 공개 메소드

public visitClosure ( 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

visitConst() 공개 메소드

public visitConst ( 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

visitDim() 공개 메소드

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

visitDoWhile() 공개 메소드

public visitDoWhile ( 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() 공개 메소드

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

visitEncapsList() 공개 메소드

public visitEncapsList ( 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

visitExprList() 공개 메소드

public visitExprList ( 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

visitForeach() 공개 메소드

public visitForeach ( 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

visitGlobal() 공개 메소드

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

visitIfElem() 공개 메소드

public visitIfElem ( 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

visitList() 공개 메소드

public visitList ( 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

visitMethod() 공개 메소드

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() 공개 메소드

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

visitNew() 공개 메소드

public visitNew ( 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() 공개 메소드

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

visitProp() 공개 메소드

Visit a node with kind \ast\AST_PROP
public visitProp ( ast\Node $node ) : Context
$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.
리턴 Phan\Language\Context A new or an unchanged context resulting from parsing the node

visitPropDecl() 공개 메소드

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() 공개 메소드

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

visitStatic() 공개 메소드

public visitStatic ( 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() 공개 메소드

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

visitStaticProp() 공개 메소드

public visitStaticProp ( ast\Node $node ) : Context
$node ast\Node
리턴 Phan\Language\Context

visitSwitch() 공개 메소드

public visitSwitch ( 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

visitSwitchCase() 공개 메소드

public visitSwitchCase ( 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

visitVar() 공개 메소드

public visitVar ( 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

visitWhile() 공개 메소드

public visitWhile ( 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