(parser)
| 5841 | this.exit = exit; |
| 5842 | } |
| 5843 | static parse(parser) { |
| 5844 | if (!parser.matchToken("halt")) return; |
| 5845 | if (parser.matchToken("the")) { |
| 5846 | parser.requireToken("event"); |
| 5847 | if (parser.matchOpToken("'")) { |
| 5848 | parser.requireToken("s"); |
| 5849 | } |
| 5850 | var keepExecuting = true; |
| 5851 | } |
| 5852 | if (parser.matchToken("bubbling")) { |
| 5853 | var bubbling = true; |
| 5854 | } else if (parser.matchToken("default")) { |
| 5855 | var haltDefault = true; |
| 5856 | } |
| 5857 | var exit = new ExitCommand(); |
| 5858 | return new _HaltCommand(bubbling, haltDefault, keepExecuting, exit); |
| 5859 | } |
| 5860 | resolve(ctx) { |
| 5861 | if (ctx.event) { |
| 5862 | if (this.bubbling) { |
nothing calls this directly
no test coverage detected