Skip to content
Snippets Groups Projects

Draft: New debug tree

Open Alexander Schlemmer requested to merge f-new-debug-tree into dev
8 files
+ 299
14
Compare changes
  • Side-by-side
  • Inline

Files

+ 9
0
@@ -361,6 +361,15 @@ class Converter(object, metaclass=ABCMeta):
self.converters.append(Converter.converter_factory(
converter_definition, converter_name, converter_registry))
def get_dict(self):
"""
Return a dictionary containing all the attributes from this structure element.
This is used for the (new) debug tree.
"""
return {"name": self.name,
"type": str(type(self))[8:-2],
"definition": self.definition}
@staticmethod
def converter_factory(definition: dict, name: str, converter_registry: dict):
"""creates a Converter instance of the appropriate class.
Loading