Give *expr* a name.
(self, expr: ast.expr)
| 771 | return name |
| 772 | |
| 773 | def assign(self, expr: ast.expr) -> ast.Name: |
| 774 | """Give *expr* a name.""" |
| 775 | name = self.variable() |
| 776 | self.statements.append(ast.Assign([ast.Name(name, ast.Store())], expr)) |
| 777 | return ast.copy_location(ast.Name(name, ast.Load()), expr) |
| 778 | |
| 779 | def display(self, expr: ast.expr) -> ast.expr: |
| 780 | """Call saferepr on the expression.""" |
no test coverage detected