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

Method Source

cel/env.go:117–122  ·  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

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

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