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

Method NativeRep

cel/env.go:58–63  ·  view source on GitHub ↗

NativeRep converts the AST to a Go-native representation.

()

Source from the content-addressed store, hash-verified

56
57// NativeRep converts the AST to a Go-native representation.
58func (ast *Ast) NativeRep() *celast.AST {
59 if ast == nil {
60 return nil
61 }
62 return ast.impl
63}
64
65// Expr returns the proto serializable instance of the parsed/checked expression.
66//

Callers 15

ExprMethod · 0.95
IsCheckedMethod · 0.95
SourceInfoMethod · 0.95
OutputTypeMethod · 0.95
TestCoverageStatsFunction · 0.80
GetMetadataMethod · 0.80
DebugASTFunction · 0.80
propagateVisitednessFunction · 0.80
reportCoverageFunction · 0.80
TestCompose_UnnestFunction · 0.80
verifySourceInfoTransferFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestCoverageStatsFunction · 0.64
TestCompose_UnnestFunction · 0.64
verifySourceInfoTransferFunction · 0.64
TestWhitespaceHanldingFunction · 0.64
verifySourceInfoCoverageFunction · 0.64
TestOptimizeWithSourceFunction · 0.64
TestExprToStringFunction · 0.64
mustProgramFunction · 0.64