Copied!
Cloneable Instantiable
Methods
public __construct ( array $options = [ ] )
 

Constructs a NodeDumper.

Supported options:

  • bool dumpComments: Whether comments should be dumped.
  • bool dumpPositions: Whether line/offset information should be dumped. To dump offset
                    information, the code needs to be passed to dump().
    
public dump ( $node , ? string $code = NULL ) : string
 

Dumps a node or array.

  • return string Dumped value
Methods
protected dumpFlags ( $flags )
protected dumpIncludeType ( $type )
protected dumpPosition ( PhpParser\Node $node )
 

Dump node position, if possible.

  • return string | null Dump of position, or null if position information not available
protected dumpRecursive ( $node )
protected dumpUseType ( $type )
Properties
private $code
private $dumpComments
private $dumpPositions
Methods
private toColumn ( $code , $pos )
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only