()
| 6122 | this.type_parser = new torch._C.SchemaTypeParser(this.L, false, allow_typevars); |
| 6123 | } |
| 6124 | parseName() { |
| 6125 | const L = this.L; |
| 6126 | let name = L.expect('id').text(); |
| 6127 | if (L.nextIf(':')) { |
| 6128 | L.expect(':'); |
| 6129 | name = `${name}::${L.expect('ident').text()}`; |
| 6130 | } |
| 6131 | let overload_name = ''; |
| 6132 | if (L.nextIf('.')) { |
| 6133 | overload_name = L.expect('ident').text(); |
| 6134 | } |
| 6135 | // const is_a_valid_overload_name = !((overload_name === "default") || (overload_name.rfind("__", 0) == 0)); |
| 6136 | // TORCH_CHECK(is_a_valid_overload_name, overload_name, " is not a legal overload name for aten operators"); |
| 6137 | return new torch._C.OperatorName(name, overload_name); |
| 6138 | } |
| 6139 | parseDeclaration() { |
| 6140 | const L = this.L; |
| 6141 | const name = this.parseName(); |
no test coverage detected