PHP 클래스 DuplicateArrayKeyVisitor

When __invoke on this class is called with a node, a method will be dispatched based on the kind of the given node. Visitors such as this are useful for defining lots of different checks on a node based on its kind.
상속: extends Phan\AST\AnalysisVisitor
파일 보기 프로젝트 열기: etsy/phan

공개 메소드들

메소드 설명
__construct ( CodeBase $code_base, Context $context, Plugin $plugin )
visit ( ast\Node $node ) : void Default visitor that does nothing
visitArray ( ast\Node $node ) : void

비공개 메소드들

메소드 설명
normalizeKey ( integer | string | float $key ) : string Converts a key to the value it would be if used as an array key.

메소드 상세

__construct() 공개 메소드

public __construct ( CodeBase $code_base, Context $context, Plugin $plugin )
$code_base Phan\CodeBase
$context Phan\Language\Context
$plugin Phan\Plugin

visit() 공개 메소드

Default visitor that does nothing
public visit ( ast\Node $node ) : void
$node ast\Node A node to analyze
리턴 void

visitArray() 공개 메소드

public visitArray ( ast\Node $node ) : void
$node ast\Node A node to analyze
리턴 void