()
| 13351 | return this.tag === 'Int'; |
| 13352 | } |
| 13353 | toInt() { |
| 13354 | if (this.isInt()) { |
| 13355 | return this.value; |
| 13356 | } else if (this.isSymInt()) { |
| 13357 | return this.toSymInt().guard_int(/* __FILE__, __LINE__ */); |
| 13358 | } |
| 13359 | throw new python.Error('Expected int.'); |
| 13360 | } |
| 13361 | isString() { |
| 13362 | return this.tag === 'String'; |
| 13363 | } |
no test coverage detected