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

Function collectParamNames

common/decls/decls.go:1072–1079  ·  view source on GitHub ↗
(paramNames map[string]struct{}, arg *types.Type)

Source from the content-addressed store, hash-verified

1070}
1071
1072func collectParamNames(paramNames map[string]struct{}, arg *types.Type) {
1073 if arg.Kind() == types.TypeParamKind {
1074 paramNames[arg.TypeName()] = struct{}{}
1075 }
1076 for _, param := range arg.Parameters() {
1077 collectParamNames(paramNames, param)
1078 }
1079}
1080
1081func formatSignature(fnName string, o *OverloadDecl) string {
1082 if opName, isOperator := operators.FindReverse(fnName); isOperator {

Callers 2

TypeParamsMethod · 0.85
functionDeclToExprDeclFunction · 0.85

Calls 3

ParametersMethod · 0.80
KindMethod · 0.65
TypeNameMethod · 0.65

Tested by

no test coverage detected