util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTDumper

type ASTDumper struct {
	// contains filtered or unexported fields
}

ASTDumper dumps AST structures to a writer

func NewASTDumper

func NewASTDumper(writer io.Writer) *ASTDumper

NewASTDumper creates a new AST dumper that writes to the given writer

func NewStdoutASTDumper

func NewStdoutASTDumper() *ASTDumper

NewStdoutASTDumper creates a new AST dumper that writes to stdout

func (*ASTDumper) DumpFile

func (d *ASTDumper) DumpFile(file *ast.File)

DumpFile dumps an entire AST file

func (*ASTDumper) DumpFlows

func (d *ASTDumper) DumpFlows(flows []*ast.Flow)

DumpFlows dumps all flows in a file

func (*ASTDumper) DumpRules

func (d *ASTDumper) DumpRules(rules []*ast.Rule)

DumpRules dumps all rules in a file

Jump to

Keyboard shortcuts

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