MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / declaredFunc

Method declaredFunc

types/methods.go:119–124  ·  view source on GitHub ↗

declaredFunc returns the concrete function/method denoted by obj. Panic ensues if there is none.

(obj *Func)

Source from the content-addressed store, hash-verified

117// Panic ensues if there is none.
118//
119func (prog *Program) declaredFunc(obj *Func) *Function {
120 if v := prog.packageLevelValue(obj); v != nil {
121 return v.(*Function)
122 }
123 panic("no concrete method: " + obj.String())
124}
125
126// needMethodsOf ensures that runtime type information (including the
127// complete method set) is available for the specified type T and all

Callers 5

makeWrapperKeyMethod · 0.95
makeBoundMethod · 0.95
addMethodMethod · 0.95
setCallFuncMethod · 0.80
buildMethod · 0.80

Calls 2

packageLevelValueMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected