(self, node)
| 800 | self.builder.end_statement(node) |
| 801 | |
| 802 | def visit_For(self, node): |
| 803 | self.builder.begin_statement(node) |
| 804 | self._enter_lexical_scope(node) |
| 805 | |
| 806 | self.builder.enter_section(node) |
| 807 | |
| 808 | # Note: Strictly speaking, this should be node.target + node.iter. |
| 809 | # However, the activity analysis accounts for this inconsistency, |
| 810 | # so dataflow analysis produces the correct values. |
| 811 | self.builder.enter_loop_section(node, node.iter) |
| 812 | for stmt in node.body: |
| 813 | self.visit(stmt) |
| 814 | self.builder.exit_loop_section(node) |
| 815 | |
| 816 | # Note: although the orelse is technically part of the loop node, |
| 817 | # they don't count as loop bodies. For example, a break in the loop's |
| 818 | # orelse will affect the parent loop, not the current one. |
| 819 | self._exit_lexical_scope(node) |
| 820 | |
| 821 | for stmt in node.orelse: |
| 822 | self.visit(stmt) |
| 823 | |
| 824 | self.builder.exit_section(node) |
| 825 | self.builder.end_statement(node) |
| 826 | |
| 827 | def visit_Break(self, node): |
| 828 | self._process_exit_statement(node, gast.While, gast.For) |
nothing calls this directly
no test coverage detected