Dumps the given AST node.
root AST node to dump.
whether to dump extra nodes, defaults to true.
whether to dump node properties, defaults to true.