def stmt(self, stmt: Statement) -> Statement:
     new = stmt.accept(self)
     assert isinstance(new, Statement)
     new.set_line(stmt.line, stmt.column)
     return new
Example #2
0
 def stmt(self, stmt: Statement) -> Statement:
     new = stmt.accept(self)
     assert isinstance(new, Statement)
     new.set_line(stmt.line)
     return new