|
|
@ -36,8 +36,6 @@ class PrinterInheritance(AbstractPrinter): |
|
|
|
result = {"child_to_base": {}} |
|
|
|
result = {"child_to_base": {}} |
|
|
|
|
|
|
|
|
|
|
|
for child in self.contracts: |
|
|
|
for child in self.contracts: |
|
|
|
if child.is_top_level: |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
info += blue(f"\n+ {child.name}\n") |
|
|
|
info += blue(f"\n+ {child.name}\n") |
|
|
|
result["child_to_base"][child.name] = {"immediate": [], "not_immediate": []} |
|
|
|
result["child_to_base"][child.name] = {"immediate": [], "not_immediate": []} |
|
|
|
if child.inheritance: |
|
|
|
if child.inheritance: |
|
|
@ -58,8 +56,6 @@ class PrinterInheritance(AbstractPrinter): |
|
|
|
|
|
|
|
|
|
|
|
result["base_to_child"] = {} |
|
|
|
result["base_to_child"] = {} |
|
|
|
for base in self.contracts: |
|
|
|
for base in self.contracts: |
|
|
|
if base.is_top_level: |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
info += green(f"\n+ {base.name}") + "\n" |
|
|
|
info += green(f"\n+ {base.name}") + "\n" |
|
|
|
children = list(self._get_child_contracts(base)) |
|
|
|
children = list(self._get_child_contracts(base)) |
|
|
|
|
|
|
|
|
|
|
|