Warning: this in only true for expressions captured by a match statement. Don't call it from anywhere else
(expr: Expression)
| 860 | |
| 861 | |
| 862 | def get_var(expr: Expression) -> Var: |
| 863 | """ |
| 864 | Warning: this in only true for expressions captured by a match statement. |
| 865 | Don't call it from anywhere else |
| 866 | """ |
| 867 | assert isinstance(expr, NameExpr), expr |
| 868 | node = expr.node |
| 869 | assert isinstance(node, Var), node |
| 870 | return node |
| 871 | |
| 872 | |
| 873 | def get_type_range(typ: Type) -> TypeRange: |
no test coverage detected
searching dependent graphs…