Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Constructs a NodeDumper. | |
dump ( array | phpparser\Node $node, string | null $code = null ) : string | Dumps a node or array. |
Method | Description | |
---|---|---|
dumpFlags ( $flags ) | ||
dumpIncludeType ( $type ) | ||
dumpPosition ( phpparser\Node $node ) | ||
dumpRecursive ( $node ) | ||
dumpUseType ( $type ) |
Method | Description | |
---|---|---|
toColumn ( $code, $pos ) | Copied from Error class |
public __construct ( array $options = [] ) | ||
$options | array | Options (see description) |
public dump ( array | phpparser\Node $node, string | null $code = null ) : string | ||
$node | array | phpparser\Node | Node or array to dump |
$code | string | null | Code corresponding to dumped AST. This only needs to be passed if the dumpPositions option is enabled and the dumping of node offsets is desired. |
return | string | Dumped value |
protected dumpPosition ( phpparser\Node $node ) | ||
$node | phpparser\Node |