INNER CODE UNIT · Python
output_code
P1sec/hermes-dec · src/hermes_dec/decompilation/defs.py:157
def output_code(self, state: HermesDecompiler):
output = ''
if not self.is_global: # Don't prototype the global function
if self.is_async:
output += 'async '
output += 'function'
if self.is_generator:
output += '*'
if not (self.is_closure or self.is_generator):
assert self.function_name
output += ' ' + self.function_name
elif self.is_generator:
output += ' '
output += '('
output += ', '.join(
'a' + str(index)
for index in range(self.function_object.paramCount - 1)