(constantName)
| 308 | } |
| 309 | |
| 310 | getConstantType(constantName) { |
| 311 | if (this.constantTypes[constantName]) { |
| 312 | const type = this.constantTypes[constantName]; |
| 313 | if (type === 'Float') { |
| 314 | return 'Number'; |
| 315 | } else { |
| 316 | return type; |
| 317 | } |
| 318 | } |
| 319 | throw new Error(`Type for constant "${ constantName }" not declared`); |
| 320 | } |
| 321 | |
| 322 | toString() { |
| 323 | if (this._string) return this._string; |
no outgoing calls
no test coverage detected