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

Struct Ast

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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected