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

Method parse

www/js/_hyperscript-max.js:5842–5858  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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