1229 self.add_arc(xit.lineno, start) |
1229 self.add_arc(xit.lineno, start) |
1230 exits = with_exit |
1230 exits = with_exit |
1231 if with_block.break_from: |
1231 if with_block.break_from: |
1232 self.process_break_exits( |
1232 self.process_break_exits( |
1233 self._combine_finally_starts(with_block.break_from, with_exit) |
1233 self._combine_finally_starts(with_block.break_from, with_exit) |
1234 ) |
1234 ) |
1235 if with_block.continue_from: |
1235 if with_block.continue_from: |
1236 self.process_continue_exits( |
1236 self.process_continue_exits( |
1237 self._combine_finally_starts(with_block.continue_from, with_exit) |
1237 self._combine_finally_starts(with_block.continue_from, with_exit) |
1238 ) |
1238 ) |
1239 if with_block.return_from: |
1239 if with_block.return_from: |
1240 self.process_return_exits( |
1240 self.process_return_exits( |
1241 self._combine_finally_starts(with_block.return_from, with_exit) |
1241 self._combine_finally_starts(with_block.return_from, with_exit) |
1242 ) |
1242 ) |
1243 return exits |
1243 return exits |
1244 |
1244 |
1245 _handle__AsyncWith = _handle__With |
1245 _handle__AsyncWith = _handle__With |
1246 |
1246 |
1247 # Code object dispatchers: _code_object__* |
1247 # Code object dispatchers: _code_object__* |
1285 start = self.line_for_node(node) |
1285 start = self.line_for_node(node) |
1286 self.add_arc(-start, start, None, f"didn't run the {noun} on line {start}") |
1286 self.add_arc(-start, start, None, f"didn't run the {noun} on line {start}") |
1287 self.add_arc(start, -start, None, f"didn't finish the {noun} on line {start}") |
1287 self.add_arc(start, -start, None, f"didn't finish the {noun} on line {start}") |
1288 return _code_object__expression_callable |
1288 return _code_object__expression_callable |
1289 |
1289 |
|
1290 # pylint: disable=too-many-function-args |
1290 _code_object__Lambda = _make_expression_code_method("lambda") |
1291 _code_object__Lambda = _make_expression_code_method("lambda") |
1291 _code_object__GeneratorExp = _make_expression_code_method("generator expression") |
1292 _code_object__GeneratorExp = _make_expression_code_method("generator expression") |
1292 _code_object__DictComp = _make_expression_code_method("dictionary comprehension") |
1293 _code_object__DictComp = _make_expression_code_method("dictionary comprehension") |
1293 _code_object__SetComp = _make_expression_code_method("set comprehension") |
1294 _code_object__SetComp = _make_expression_code_method("set comprehension") |
1294 _code_object__ListComp = _make_expression_code_method("list comprehension") |
1295 _code_object__ListComp = _make_expression_code_method("list comprehension") |