(s *expr.GRPCServiceExpr, services *ServicesData)
| 177 | } |
| 178 | |
| 179 | func transTmplFuncs(s *expr.GRPCServiceExpr, services *ServicesData) map[string]any { |
| 180 | return map[string]any{ |
| 181 | "goTypeRef": func(dt expr.DataType) string { |
| 182 | return services.ServicesData.Get(s.Name()).Scope.GoTypeRef(&expr.AttributeExpr{Type: dt}) |
| 183 | }, |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | // typeConversionData produces the template data suitable for executing the |
| 188 | // "type_conversion" template. |
no test coverage detected