MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / parse

Method parse

tools/common/_hyperscript.iife.js:5500–5516  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

matchTokenMethod · 0.45
requireTokenMethod · 0.45
matchOpTokenMethod · 0.45

Tested by

no test coverage detected