Skip to content

Commit

Permalink
AILBlockWalkerBase.walk_statement takes block as an input arg. (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish authored Feb 7, 2025
1 parent cbfa30f commit b2e3f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ailment/block_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def walk(self, block: Block) -> None:
self._handle_stmt(i, stmt, block)
i += 1

def walk_statement(self, stmt: Statement):
return self._handle_stmt(0, stmt, None)
def walk_statement(self, stmt: Statement, block: Block | None = None):
return self._handle_stmt(0, stmt, block)

def walk_expression(
self,
Expand Down

0 comments on commit b2e3f17

Please sign in to comment.