MCPcopy
hub / github.com/tinygo-org/tinygo / getMethodsString

Method getMethodsString

compiler/interface.go:838–844  ·  view source on GitHub ↗

getMethodsString returns a string to be used in the "tinygo-methods" string attribute for interface functions.

(itf *types.Interface)

Source from the content-addressed store, hash-verified

836// getMethodsString returns a string to be used in the "tinygo-methods" string
837// attribute for interface functions.
838func (c *compilerContext) getMethodsString(itf *types.Interface) string {
839 methods := make([]string, itf.NumMethods())
840 for i := range methods {
841 methods[i] = c.getMethodSignatureName(itf.Method(i))
842 }
843 return strings.Join(methods, "; ")
844}
845
846// getMethodSetValue creates the method set struct value for a list of methods.
847// The struct contains a length and a sorted array of method signature pointers.

Callers 2

getInvokeFunctionMethod · 0.95

Calls 2

MethodMethod · 0.65

Tested by

no test coverage detected