PHP 클래스 Phan\Debug

파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
astFlagDescription ( integer $flag ) : string
backtrace ( integer $levels ) : string
mark ( ) Print a lil' something to the console to see if a thing is called
nodeName ( $node ) : string
nodeToString ( string | ast\Node | null $node, $name = null, integer $indent ) : string
print ( string $message, integer $indent ) Print a thing with the given indent level
printNode ( string | ast\Node | null $node ) : null
printNodeName ( $node, $indent ) Print the name of a node to the terminal

메소드 상세

astFlagDescription() 공개 정적인 메소드

public static astFlagDescription ( integer $flag ) : string
$flag integer
리턴 string Get a string representation of AST node flags such as 'ASSIGN_DIV|TYPE_ARRAY'

backtrace() 공개 정적인 메소드

public static backtrace ( integer $levels ) : string
$levels integer
리턴 string Pretty-printer for debug_backtrace

mark() 공개 정적인 메소드

Print a lil' something to the console to see if a thing is called
public static mark ( )

nodeName() 공개 정적인 메소드

public static nodeName ( $node ) : string
리턴 string The name of the node

nodeToString() 공개 정적인 메소드

public static nodeToString ( string | ast\Node | null $node, $name = null, integer $indent ) : string
$node string | ast\Node | null An AST node
$indent integer The indentation level for the string
리턴 string A string representation of an AST node

print() 공개 정적인 메소드

Print a thing with the given indent level
public static print ( string $message, integer $indent )
$message string
$indent integer

printNode() 공개 정적인 메소드

public static printNode ( string | ast\Node | null $node ) : null
$node string | ast\Node | null An AST node Print an AST node
리턴 null

printNodeName() 공개 정적인 메소드

Print the name of a node to the terminal
public static printNodeName ( $node, $indent )