(parser)
| 5498 | this.exit = exit; |
| 5499 | } |
| 5500 | static parse(parser) { |
| 5501 | if (!parser.matchToken("halt")) return; |
| 5502 | if (parser.matchToken("the")) { |
| 5503 | parser.requireToken("event"); |
| 5504 | if (parser.matchOpToken("'")) { |
| 5505 | parser.requireToken("s"); |
| 5506 | } |
| 5507 | var keepExecuting = true; |
| 5508 | } |
| 5509 | if (parser.matchToken("bubbling")) { |
| 5510 | var bubbling = true; |
| 5511 | } else if (parser.matchToken("default")) { |
| 5512 | var haltDefault = true; |
| 5513 | } |
| 5514 | var exit = new ExitCommand(); |
| 5515 | return new _HaltCommand(bubbling, haltDefault, keepExecuting, exit); |
| 5516 | } |
| 5517 | resolve(ctx) { |
| 5518 | if (ctx.event) { |
| 5519 | if (this.bubbling) { |
nothing calls this directly
no test coverage detected