(self: Parser, node: doc.arguments)
| 332 | |
| 333 | @dispatch.register(token="relax", type_name="arguments") |
| 334 | def visit_arguments(self: Parser, node: doc.arguments) -> None: |
| 335 | arg: doc.arg |
| 336 | for arg in node.args: |
| 337 | if arg.annotation is None: |
| 338 | self.report_error(arg, "Type annotation is required for function parameters.") |
| 339 | param_sinfo = eval_struct_info(self, arg.annotation, eval_str=True) |
| 340 | param = R.arg(arg.arg, param_sinfo) |
| 341 | |
| 342 | self.var_table.add(arg.arg, param) |
| 343 | |
| 344 | |
| 345 | @dispatch.register(token="relax", type_name="tvm_annotation") |
nothing calls this directly
no test coverage detected
searching dependent graphs…