(condition?: Code)
| 400 | } |
| 401 | |
| 402 | fail(condition?: Code): void { |
| 403 | if (condition === undefined) { |
| 404 | this.error() |
| 405 | if (!this.allErrors) this.gen.if(false) // this branch will be removed by gen.optimize |
| 406 | return |
| 407 | } |
| 408 | this.gen.if(condition) |
| 409 | this.error() |
| 410 | if (this.allErrors) this.gen.endIf() |
| 411 | else this.gen.else() |
| 412 | } |
| 413 | |
| 414 | fail$data(condition: Code): void { |
| 415 | if (!this.$data) return this.fail(condition) |
no test coverage detected