메소드 | 설명 | |
---|---|---|
__construct ( array $options = [] ) | Constructs a NodeDumper. | |
dump ( array | phpparser\Node $node, string | null $code = null ) : string | Dumps a node or array. |
메소드 | 설명 | |
---|---|---|
dumpFlags ( $flags ) | ||
dumpIncludeType ( $type ) | ||
dumpPosition ( phpparser\Node $node ) | ||
dumpRecursive ( $node ) | ||
dumpUseType ( $type ) |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | string | Dumped value |