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

Method Source

cel/env.go:115–120  ·  view source on GitHub ↗

Source returns a view of the input used to create the Ast. This source may be complete or constructed from the SourceInfo.

()

Source from the content-addressed store, hash-verified

113// Source returns a view of the input used to create the Ast. This source may be complete or
114// constructed from the SourceInfo.
115func (ast *Ast) Source() Source {
116 if ast == nil {
117 return nil
118 }
119 return ast.source
120}
121
122// FormatType converts a type message into a string representation.
123//

Callers 6

TestAstNilFunction · 0.95
CheckMethod · 0.45
ResidualAstMethod · 0.45
TestOptimizeWithSourceFunction · 0.45
TestAstToProtoFunction · 0.45
OptimizeMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestAstNilFunction · 0.76
TestOptimizeWithSourceFunction · 0.36
TestAstToProtoFunction · 0.36