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

Method parse

www/js/_hyperscript.js:5843–5859  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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