MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Ast

Struct Ast

cel/env.go:49–56  ·  view source on GitHub ↗

Ast representing the checked or unchecked expression, its source, and related metadata such as source position information.

Source from the content-addressed store, hash-verified

47// Ast representing the checked or unchecked expression, its source, and related metadata such as
48// source position information.
49type Ast struct {
50 source Source
51 impl *celast.AST
52 // loadErr captures an error detected while loading the AST (e.g. an over-deep AST ingested via
53 // ParsedExprToAst / CheckedExprToAst) so it can be surfaced when the Ast is checked or planned
54 // instead of recursing into the checker or planner on adversarially deep input.
55 loadErr error
56}
57
58// NativeRep converts the AST to a Go-native representation.
59func (ast *Ast) NativeRep() *celast.AST {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected