Improve top level functions format

pull/1744/head
Simone 2 years ago
parent cb376503b7
commit 6236e54b3e
  1. 2
      slither/printers/summary/slithir.py

@ -46,7 +46,7 @@ class PrinterSlithIR(AbstractPrinter):
txt += f"\tModifier {modifier.canonical_name}\n" txt += f"\tModifier {modifier.canonical_name}\n"
txt += _print_function(modifier) txt += _print_function(modifier)
if compilation_unit.functions_top_level: if compilation_unit.functions_top_level:
txt += "Top level functions" txt += "Top level functions\n"
for function in compilation_unit.functions_top_level: for function in compilation_unit.functions_top_level:
txt += f"\tFunction {function.canonical_name}\n" txt += f"\tFunction {function.canonical_name}\n"
txt += _print_function(function) txt += _print_function(function)

Loading…
Cancel
Save