(parser)
| 414 | } |
| 415 | |
| 416 | #syncToCommand(parser) { |
| 417 | parser.tokens.clearFollows(); |
| 418 | while (parser.hasMore() && |
| 419 | !parser.commandBoundary(parser.currentToken())) { |
| 420 | parser.tokens.consumeToken(); |
| 421 | } |
| 422 | // consume 'then' if that's what we landed on |
| 423 | if (parser.hasMore() && parser.currentToken().value === "then") { |
| 424 | parser.tokens.consumeToken(); |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | parse(tokenizer, src) { |
| 429 | var tokens = tokenizer.tokenize(src); |
no test coverage detected