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

Method NativeRep

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

NativeRep converts the AST to a Go-native representation.

()

Source from the content-addressed store, hash-verified

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

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 10

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