Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
// Kind is a high-level category: "literal", "identifier", "unary", "infix",
// "block", "field", "index", "call", "import", "ternary", "quantifier",
// "reduce", "transform", "rule", "policy"
Kind string `json:"kind"`
// Op is the operator or sub-kind (e.g., "not", "+", "any", "collect", "filter"),
// or rule/policy name for those node kinds.
Op string `json:"op,omitempty"`
// Duration is the time taken to evaluate the node.
Duration time.Duration `json:"duration,omitempty"`
// Node is the AST node that this node is associated with.
Node ast.Node `json:"-"`
// Meta holds node-specific metadata (e.g., field name, callee alias, etc.).
Meta map[string]any `json:"meta,omitempty"`
// Children are the nested steps under this node.
Children []*Node `json:"children,omitempty"`
// Result is the boxed value resulting from this node's evaluation.
Result box.Value `json:"result,omitempty"`
// Err (if set) is the error message produced during evaluation of this node.
Err string `json:"err,omitempty"`
}
Node captures a single evaluation step in the decision tree.
func IgnoredStmt ¶
func UnsupportedExpression ¶
Click to show internal directories.
Click to hide internal directories.