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

Method Documentation

common/decls/decls.go:955–960  ·  view source on GitHub ↗

Documentation returns name, type, and description for the variable.

()

Source from the content-addressed store, hash-verified

953
954// Documentation returns name, type, and description for the variable.
955func (v *VariableDecl) Documentation() *common.Doc {
956 if v == nil {
957 return nil
958 }
959 return common.NewVariableDoc(v.Name(), describeCELType(v.Type()), v.Description())
960}
961
962// Name returns the fully-qualified variable name
963func (v *VariableDecl) Name() string {

Callers 1

TestNilVariableFunction · 0.95

Calls 5

NameMethod · 0.95
TypeMethod · 0.95
DescriptionMethod · 0.95
NewVariableDocFunction · 0.92
describeCELTypeFunction · 0.85

Tested by 1

TestNilVariableFunction · 0.76