(type, kind, real_type)
| 6342 | */ |
| 6343 | } |
| 6344 | parseConstantList(type, kind, real_type) { |
| 6345 | const L = this.L; |
| 6346 | const tok = L.expect('['); |
| 6347 | const vs = []; |
| 6348 | if (L.cur().kind !== ']') { |
| 6349 | do { |
| 6350 | vs.push(this.parseSingleConstant(type, kind, real_type)); |
| 6351 | } while (L.nextIf(',')); |
| 6352 | } |
| 6353 | L.expect(']'); |
| 6354 | return this.convertToList(type, kind, tok.range, vs); |
| 6355 | } |
| 6356 | convertToList(type, kind, range, vs) { |
| 6357 | switch (kind) { |
| 6358 | case torch._C.TypeKind.ComplexType: |
no test coverage detected