An expression as a statement, such as print(s).
| 1824 | |
| 1825 | |
| 1826 | class ExpressionStmt(Statement): |
| 1827 | """An expression as a statement, such as print(s).""" |
| 1828 | |
| 1829 | __slots__ = ("expr",) |
| 1830 | |
| 1831 | __match_args__ = ("expr",) |
| 1832 | |
| 1833 | expr: Expression |
| 1834 | |
| 1835 | def __init__(self, expr: Expression) -> None: |
| 1836 | super().__init__() |
| 1837 | self.expr = expr |
| 1838 | |
| 1839 | def accept(self, visitor: StatementVisitor[T]) -> T: |
| 1840 | return visitor.visit_expression_stmt(self) |
| 1841 | |
| 1842 | |
| 1843 | class AssignmentStmt(Statement): |
no outgoing calls
no test coverage detected
searching dependent graphs…