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

Function formatSignature

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

Source from the content-addressed store, hash-verified

1263}
1264
1265func formatSignature(fnName string, o *OverloadDecl) string {
1266 if opName, isOperator := operators.FindReverse(fnName); isOperator {
1267 if opName == "" {
1268 opName = fnName
1269 }
1270 return formatOperator(opName, o)
1271 }
1272 return formatCall(fnName, o)
1273}
1274
1275func formatOperator(opName string, o *OverloadDecl) string {
1276 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