(self: Parser, node: doc.Assign)
| 121 | |
| 122 | @dispatch.register(token="default", type_name="Assign") |
| 123 | def visit_assign(self: Parser, node: doc.Assign) -> None: |
| 124 | if len(node.targets) != 1: |
| 125 | self.report_error(node, "Consequential assignments like 'a = b = c' are not supported.") |
| 126 | lhs = node.targets[0] |
| 127 | rhs = self.eval_expr(node.value) |
| 128 | self.eval_assign( |
| 129 | target=lhs, source=rhs, bind_value=lambda _a, _b, _c, value: value, allow_shadowing=True |
| 130 | ) |
| 131 | |
| 132 | |
| 133 | @dispatch.register(token="default", type_name="pre_visit_local_function") |
nothing calls this directly
no test coverage detected
searching dependent graphs…