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

Method NativeRep

cel/env.go:60–65  ·  view source on GitHub ↗

NativeRep converts the AST to a Go-native representation.

()

Source from the content-addressed store, hash-verified

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

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
TestComposeFunction · 0.80
verifySourceInfoTransferFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestCoverageStatsFunction · 0.64
TestComposeFunction · 0.64
verifySourceInfoTransferFunction · 0.64
TestWhitespaceHanldingFunction · 0.64
setupMethod · 0.64
verifySourceInfoCoverageFunction · 0.64
TestOptimizeWithSourceFunction · 0.64
TestExprToStringFunction · 0.64
mustProgramFunction · 0.64