* Walk labeled statement. * @param {LabeledStatement} statement with statement
(statement)
| 2488 | * @param {LabeledStatement} statement with statement |
| 2489 | */ |
| 2490 | walkLabeledStatement(statement) { |
| 2491 | const hook = this.hooks.label.get(statement.label.name); |
| 2492 | if (hook !== undefined) { |
| 2493 | const result = hook.call(statement); |
| 2494 | if (result === true) return; |
| 2495 | } |
| 2496 | this.inBlockScope(() => { |
| 2497 | this.walkNestedStatement(statement.body); |
| 2498 | }); |
| 2499 | } |
| 2500 | |
| 2501 | /** |
| 2502 | * Pre walk with statement. |
no test coverage detected