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

Function formatSignature

common/decls/decls.go:1177–1185  ·  view source on GitHub ↗
(fnName string, o *OverloadDecl)

Source from the content-addressed store, hash-verified

1175}
1176
1177func formatSignature(fnName string, o *OverloadDecl) string {
1178 if opName, isOperator := operators.FindReverse(fnName); isOperator {
1179 if opName == "" {
1180 opName = fnName
1181 }
1182 return formatOperator(opName, o)
1183 }
1184 return formatCall(fnName, o)
1185}
1186
1187func formatOperator(opName string, o *OverloadDecl) string {
1188 args := o.ArgTypes()

Callers 1

DocumentationMethod · 0.85

Calls 3

FindReverseFunction · 0.92
formatOperatorFunction · 0.85
formatCallFunction · 0.85

Tested by

no test coverage detected