Skip to content

Commit

Permalink
fix: replace hardcoded with-do with find_handler 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
fkroeber committed Jun 28, 2024
1 parent d377e20 commit f0cdbd0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions semantique/visualiser/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ def convert_app(self, parent, obj):
ET.SubElement(prev_result, "field", name="name").text = key
ET.SubElement(prev_result, "field", name="export").text = "true"
instructs = ET.SubElement(prev_result, "value", name="instructions")
instructs_block = ET.SubElement(
instructs, "block", type=value["type"], id=self._gen_id()
)
self.handle_with(instructs_block, value["with"])
self.handle_do(instructs_block, value["do"])
self.find_handler(instructs, value)

def find_handler(self, parent, obj):
"""Calls the dedicated handler for a building block."""
Expand Down

0 comments on commit f0cdbd0

Please sign in to comment.