Handle match shape
(self, match_cast: relax.MatchCast)
| 337 | raise ValueError(f"Invalid binding type in {binding}: {type(binding)}") |
| 338 | |
| 339 | def visit_match_cast_(self, match_cast: relax.MatchCast) -> str: |
| 340 | """ |
| 341 | Handle match shape |
| 342 | """ |
| 343 | fields = { |
| 344 | "var": self.visit_expr(match_cast.var), |
| 345 | "value": self.visit_expr(match_cast.value), |
| 346 | "struct_info": self.visit_struct_info_(match_cast.struct_info), |
| 347 | } |
| 348 | return self.build_ast_node("MatchCast", **fields) |
| 349 | |
| 350 | def visit_var_binding_(self, var_binding: relax.VarBinding) -> str: |
| 351 | """ |
no test coverage detected