getMethodsString returns a string to be used in the "tinygo-methods" string attribute for interface functions.
(itf *types.Interface)
| 836 | // getMethodsString returns a string to be used in the "tinygo-methods" string |
| 837 | // attribute for interface functions. |
| 838 | func (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. |
no test coverage detected