src/basilisp/lang/compiler/optimizer.py
def visit_ExceptHandler(self, node: ast.ExceptHandler) -> Optional[ast.AST]:
        """Eliminate dead code from except handler bodies."""
        new_node = self.generic_visit(node)
        assert isinstance(new_node, ast.ExceptHandler)
        return ast.copy_location(
            ast.ExceptHandler(
                type=new_node.type,
                name=new_node.name,
                body=_filter_dead_code(new_node.body),
            ),
            new_node,
        )
def visit_ExceptHandler(self, node: ast.ExceptHandler) -> Optional[ast.AST]:
        new_node = self.generic_visit(node)
        assert isinstance(new_node, ast.ExceptHandler)
        return ast.copy_location(
            ast.ExceptHandler(
                type=new_node.type,
                name=new_node.name,
                body=_filter_dead_code(new_node.body),
            ),
            new_node,
        )
def visit_ExceptHandler ( self , node : ast . ExceptHandler ) -> Optional [ ast . AST ] : new_node = self . generic_visit ( node ) assert isinstance ( new_node , ast . ExceptHandler ) return ast . copy_location ( ast . ExceptHandler ( type = new_node . type , name = new_node . name , body = _filter_dead_code ( new_node . body ) , ) , new_node , )
Eliminate dead code from except handler bodies.
Eliminate dead code from except handler bodies .