Skip to content

Commit

Permalink
✨ show time attribute in PrintVisitor. #43
Browse files Browse the repository at this point in the history
  • Loading branch information
perillaroc committed Sep 9, 2022
1 parent 5e1cd79 commit 0553091
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions takler/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def visit(self, node: Node):
if self.show_trigger and node.trigger_expression is not None:
self.stream.write(f"{pre_spaces} trigger {node.trigger_expression.expression_str}\n")

if self.show_trigger:
for time_attr in node.times:
self.stream.write(f"{pre_spaces} time {time_attr.time.hour:02}:{time_attr.time.minute:02}\n")

if self.show_parameter:
user_params = node.user_parameters_only()
for name, param in user_params.items():
Expand Down

0 comments on commit 0553091

Please sign in to comment.