(self, node: IndexExpr)
| 600 | return SetExpr(self.expressions(node.items)) |
| 601 | |
| 602 | def visit_index_expr(self, node: IndexExpr) -> IndexExpr: |
| 603 | new = IndexExpr(self.expr(node.base), self.expr(node.index)) |
| 604 | if node.method_type: |
| 605 | new.method_type = self.type(node.method_type) |
| 606 | if node.analyzed: |
| 607 | if isinstance(node.analyzed, TypeApplication): |
| 608 | new.analyzed = self.visit_type_application(node.analyzed) |
| 609 | else: |
| 610 | new.analyzed = self.visit_type_alias_expr(node.analyzed) |
| 611 | new.analyzed.set_line(node.analyzed) |
| 612 | return new |
| 613 | |
| 614 | def visit_type_application(self, node: TypeApplication) -> TypeApplication: |
| 615 | return TypeApplication(self.expr(node.expr), self.types(node.types)) |
nothing calls this directly
no test coverage detected