Star expression
| 2358 | |
| 2359 | |
| 2360 | class StarExpr(Expression): |
| 2361 | """Star expression""" |
| 2362 | |
| 2363 | __slots__ = ("expr", "valid") |
| 2364 | |
| 2365 | __match_args__ = ("expr", "valid") |
| 2366 | |
| 2367 | expr: Expression |
| 2368 | valid: bool |
| 2369 | |
| 2370 | def __init__(self, expr: Expression) -> None: |
| 2371 | super().__init__() |
| 2372 | self.expr = expr |
| 2373 | |
| 2374 | # Whether this starred expression is used in a tuple/list and as lvalue |
| 2375 | self.valid = False |
| 2376 | |
| 2377 | def accept(self, visitor: ExpressionVisitor[T]) -> T: |
| 2378 | return visitor.visit_star_expr(self) |
| 2379 | |
| 2380 | |
| 2381 | class RefExpr(Expression): |
no outgoing calls
no test coverage detected
searching dependent graphs…