dump

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package dump renders AST nodes as deterministic, human-reviewable trees.

The output pins the entire tree — every exported struct field plus the base-node state reachable through the ast.Node/ast.ExprNode interfaces (Text, OriginalText, OriginTextPosition, GetFlag, GetType) — so that two parsers producing "the same" AST can be compared field-for-field. It is the golden format of the parser corpus and the comparator of the differential harness; it is not a formatter and has no compatibility promise beyond being deterministic for equal trees.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(v any) string

Any renders an arbitrary value with the same rules as Statements.

func Statements

func Statements(stmts []ast.StmtNode) string

Statements renders a parse result.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL