MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / #syncToCommand

Method #syncToCommand

src/core/kernel.js:416–426  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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);

Callers 1

parseCommandListMethod · 0.95

Calls 5

clearFollowsMethod · 0.45
hasMoreMethod · 0.45
commandBoundaryMethod · 0.45
currentTokenMethod · 0.45
consumeTokenMethod · 0.45

Tested by

no test coverage detected