MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / parse

Method parse

www/js/_hyperscript.esm.js:5841–5857  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

5839 this.exit = exit;
5840 }
5841 static parse(parser) {
5842 if (!parser.matchToken("halt")) return;
5843 if (parser.matchToken("the")) {
5844 parser.requireToken("event");
5845 if (parser.matchOpToken("'")) {
5846 parser.requireToken("s");
5847 }
5848 var keepExecuting = true;
5849 }
5850 if (parser.matchToken("bubbling")) {
5851 var bubbling = true;
5852 } else if (parser.matchToken("default")) {
5853 var haltDefault = true;
5854 }
5855 var exit = new ExitCommand();
5856 return new _HaltCommand(bubbling, haltDefault, keepExecuting, exit);
5857 }
5858 resolve(ctx) {
5859 if (ctx.event) {
5860 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