PHP Class Phan\Debug

Afficher le fichier Open project: etsy/phan Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

astFlagDescription() public static méthode

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

backtrace() public static méthode

public static backtrace ( integer $levels ) : string
$levels integer
Résultat string Pretty-printer for debug_backtrace

mark() public static méthode

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

nodeName() public static méthode

public static nodeName ( $node ) : string
Résultat string The name of the node

nodeToString() public static méthode

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
Résultat string A string representation of an AST node

print() public static méthode

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

printNode() public static méthode

public static printNode ( string | ast\Node | null $node ) : null
$node string | ast\Node | null An AST node Print an AST node
Résultat null

printNodeName() public static méthode

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