The AST node to dump
Formatting options
OptionalannotateFields?: booleanWhether to prefix each value with its field
name (default: true)
OptionalincludeAttributes?: booleanWhether to include location attributes
(lineno, col_offset, etc.) in the output (default: false)
Optionalindent?: string | number | nullIndentation to use for multi-line output; a number
of spaces or a literal string, or null for single-line output
(default: null)
OptionalshowEmpty?: booleanWhether to include empty/null/undefined
fields in the output (default: false)
The formatted string representation of node
Dump an AST node to a formatted string for debugging, similar to Python's
ast.dump.