PHP Class Phan\Analysis\ReferenceCountsAnalyzer

Mostra file Open project: etsy/phan Class Usage Examples

Public Methods

Method Description
analyzeElementReferenceCounts ( CodeBase $code_base, AddressableElement $element, string $issue_type ) : null Check to see if the given Clazz is a duplicate
analyzeReferenceCounts ( CodeBase $code_base ) : void Take a look at all globally accessible elements and see if we can find any dead code that is never referenced

Private Methods

Method Description
analyzeClassMapReferenceCounts ( CodeBase $code_base, ClassMap $class_map, integer $total_count, integer &$i ) : void
analyzeElementListReferenceCounts ( CodeBase $code_base, Phan\Library\Map | array $element_list, string $issue_type, integer $total_count, integer &$i ) : void

Method Details

analyzeElementReferenceCounts() public static method

Check to see if the given Clazz is a duplicate
public static analyzeElementReferenceCounts ( CodeBase $code_base, AddressableElement $element, string $issue_type ) : null
$code_base Phan\CodeBase
$element Phan\Language\Element\AddressableElement
$issue_type string
return null

analyzeReferenceCounts() public static method

Take a look at all globally accessible elements and see if we can find any dead code that is never referenced
public static analyzeReferenceCounts ( CodeBase $code_base ) : void
$code_base Phan\CodeBase
return void