Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
Position
Items []ObjectItem
}
Object represents an object constructor {expr: expr, ...}.
type ObjectItem ¶
type ObjectItem struct {
Key, Value Expr
}
type Parentheses ¶
Parentheses represents a parenthesized expression.
type Position ¶
Position stores token position information.
type Visitor ¶
type Visitor interface {
// Enter is called before visiting children.
// Return nil to skip visiting this node's children.
// Return a visitor (typically self) to continue traversal.
Enter(Expr) (Visitor, error)
// Exit is called after visiting children.
// Return the (possibly transformed) node.
Exit(Expr) (Expr, error)
}
Visitor processes AST nodes with pre-order and post-order hooks.
Click to show internal directories.
Click to hide internal directories.