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

Method prettyPrintString

commands/FBClassDump.py:336–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

334 self.imp = self.toHex(json["implementation"])
335
336 def prettyPrintString(self):
337 argnum = len(self.parameters_type)
338 names = self.name.split(":")
339
340 # the argnum count must be bigger then 2, index 0 for self, index 1 for SEL
341 for i in range(2, argnum):
342 arg_type = self.parameters_type[i]
343 names[i - 2] = names[i - 2] + ":(" + decode(arg_type) + ")arg" + str(i - 2)
344
345 string = " ".join(names)
346 return "({}){}".format(decode(self.return_type), string)
347
348 def toHex(self, addr):
349 return hex(addr)

Callers 2

printInstanceMethodsFunction · 0.45
printPropertiesFunction · 0.45

Calls 1

decodeFunction · 0.85

Tested by

no test coverage detected