Beispiel #1
0
 def visit_begin(self, ast, vars, env_structure):
     assert isinstance(ast, Begin)
     body_structures, body_removes = self._visit_sequenced_body(
             ast, vars, env_structure)
     new_body = [None] * len(ast.body)
     new_body = [b.visit(self, vars, body_structures[i])
                 for i, b in enumerate(ast.body)]
     result = Begin(new_body)
     result.init_body_pruning(env_structure, body_removes)
     return result
Beispiel #2
0
 def visit_begin(self, ast, vars, env_structure):
     assert isinstance(ast, Begin)
     body_structures, body_removes = self._visit_sequenced_body(
         ast, vars, env_structure)
     new_body = [None] * len(ast.body)
     new_body = [
         b.visit(self, vars, body_structures[i])
         for i, b in enumerate(ast.body)
     ]
     result = Begin(new_body)
     result.init_body_pruning(env_structure, body_removes)
     return result
Beispiel #3
0
 def visit_begin(self, ast, *args):
     assert isinstance(ast, Begin)
     body = [b.visit(self, *args) for b in ast.body]
     return Begin.make(body)
Beispiel #4
0
 def visit_begin(self, ast):
     assert isinstance(ast, Begin)
     body = [b.visit(self) for b in ast.body]
     result = Begin(body)
     result.copy_body_pruning(ast)
     return result
Beispiel #5
0
 def visit_begin(self, ast, *args):
     assert isinstance(ast, Begin)
     body = [b.visit(self, *args) for b in ast.body]
     return Begin.make(body)
Beispiel #6
0
 def visit_begin(self, ast):
     assert isinstance(ast, Begin)
     body = [b.visit(self) for b in ast.body]
     result = Begin(body)
     result.copy_body_pruning(ast)
     return result