MCPcopy Create free account
hub / github.com/facebook/chisel / printInstanceMethods

Function printInstanceMethods

commands/FBClassDump.py:228–237  ·  view source on GitHub ↗
(cls, showaddr=False, prefix="-")

Source from the content-addressed store, hash-verified

226
227
228def printInstanceMethods(cls, showaddr=False, prefix="-"):
229 methods = getMethods(cls)
230 if not methods:
231 print("No methods were found")
232
233 for m in methods:
234 if showaddr:
235 print(prefix + " " + m.prettyPrintString() + " " + str(m.imp))
236 else:
237 print(prefix + " " + m.prettyPrintString())
238
239
240def printClassMethods(cls, showaddr=False):

Callers 2

runMethod · 0.85
printClassMethodsFunction · 0.85

Calls 2

getMethodsFunction · 0.85
prettyPrintStringMethod · 0.45

Tested by

no test coverage detected