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

Method Source

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

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

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