PHP Class Phan\Plugin\PluginImplementation

Plugins must extends this class and return an instance of themselves.
Inheritance: extends Phan\Plugin
Show file Open project: etsy/phan

Public Methods

Method Description
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.

Method Details

analyzeClass() public method

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
return void

analyzeFunction() public method

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
return void

analyzeMethod() public method

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
return void

analyzeNode() public method

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
return void

preAnalyzeNode() public method

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.
return void