()
| 1607 | return null; |
| 1608 | } |
| 1609 | _parseTypeArguments() { |
| 1610 | const list = []; |
| 1611 | this._tokenizer.expect('['); |
| 1612 | while (!this._tokenizer.accept(']')) { |
| 1613 | const type = this._parseType(); |
| 1614 | if (type === null) { |
| 1615 | throw new python.Error(`Expected type ${this._location()}`); |
| 1616 | } |
| 1617 | list.push(type); |
| 1618 | if (!this._tokenizer.accept(',')) { |
| 1619 | this._tokenizer.expect(']'); |
| 1620 | break; |
| 1621 | } |
| 1622 | } |
| 1623 | return list; |
| 1624 | } |
| 1625 | _parseType() { |
| 1626 | const target = this._parseExpression(-1, ['[', '=']); |
| 1627 | if (target) { |
nothing calls this directly
no test coverage detected