Skip to content

Commit

Permalink
Add visit_Pass :)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Jul 17, 2023
1 parent a324511 commit a54cd36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/interpreted/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ def visit_Continue(self, node: nodes.Continue) -> Continue:
def visit_Return(self, node: nodes.Return) -> Return:
raise Return(self.visit(node.value))

def visit_Pass(self, node: nodes.Pass) -> None:
pass # :)

def visit_ExprStmt(self, node: ExprStmt) -> None:
self.visit(node.value)

Expand Down

0 comments on commit a54cd36

Please sign in to comment.