PHP 클래스 Phan\Plugin\PluginImplementation

Plugins must extends this class and return an instance of themselves.
상속: extends Phan\Plugin
파일 보기 프로젝트 열기: etsy/phan

공개 메소드들

메소드 설명
analyzeClass ( CodeBase $code_base, Clazz $class ) : void
analyzeFunction ( CodeBase $code_base, Func $function ) : void
analyzeMethod ( CodeBase $code_base, Method $method ) : void
analyzeNode ( CodeBase $code_base, Context $context, ast\Node $node, ast\Node $parent_node = null ) : void
preAnalyzeNode ( CodeBase $code_base, Context $context, ast\Node $node ) : void Do a first-pass analysis of a node before Phan does its full analysis. This hook allows you to update types in the CodeBase before analysis happens.

메소드 상세

analyzeClass() 공개 메소드

public analyzeClass ( CodeBase $code_base, Clazz $class ) : void
$code_base Phan\CodeBase The code base in which the class exists
$class Phan\Language\Element\Clazz A class being analyzed
리턴 void

analyzeFunction() 공개 메소드

public analyzeFunction ( CodeBase $code_base, Func $function ) : void
$code_base Phan\CodeBase The code base in which the function exists
$function Phan\Language\Element\Func A function being analyzed
리턴 void

analyzeMethod() 공개 메소드

public analyzeMethod ( CodeBase $code_base, Method $method ) : void
$code_base Phan\CodeBase The code base in which the method exists
$method Phan\Language\Element\Method A method being analyzed
리턴 void

analyzeNode() 공개 메소드

public analyzeNode ( CodeBase $code_base, Context $context, ast\Node $node, ast\Node $parent_node = null ) : void
$code_base Phan\CodeBase The code base in which the node exists
$context Phan\Language\Context The context in which the node exits. This is the context inside the given node rather than the context outside of the given node
$node ast\Node The php-ast Node being analyzed.
$parent_node ast\Node
리턴 void

preAnalyzeNode() 공개 메소드

Do a first-pass analysis of a node before Phan does its full analysis. This hook allows you to update types in the CodeBase before analysis happens.
public preAnalyzeNode ( CodeBase $code_base, Context $context, ast\Node $node ) : void
$code_base Phan\CodeBase The code base in which the node exists
$context Phan\Language\Context The context in which the node exits. This is the context inside the given node rather than the context outside of the given node
$node ast\Node The php-ast Node being analyzed.
리턴 void