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

Struct Ast

cel/env.go:48–55  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected