MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / GenerateMethodBody

Function GenerateMethodBody

pkg/tsgen/tsgen.go:414–416  ·  view source on GitHub ↗
(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta)

Source from the content-addressed store, hash-verified

412}
413
414func GenerateMethodBody(serviceName string, method reflect.Method, meta tsgenmeta.MethodMeta) string {
415 return fmt.Sprintf(" return callBackendService(this?.waveEnv, %q, %q, Array.from(arguments))\n", serviceName, method.Name)
416}
417
418func GenerateServiceClass(serviceName string, serviceObj any, tsTypesMap map[reflect.Type]string) string {
419 serviceType := reflect.TypeOf(serviceObj)

Callers 1

GenerateServiceClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected