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

Method NativeRep

cel/env.go:59–64  ·  view source on GitHub ↗

NativeRep converts the AST to a Go-native representation.

()

Source from the content-addressed store, hash-verified

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

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