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

Method Source

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

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

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