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

Method parse

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

Source from the content-addressed store, hash-verified

8533 this.args = { target };
8534 }
8535 static parse(parser) {
8536 if (!parser.matchToken("reset")) return;
8537 var target = null;
8538 if (!parser.commandBoundary(parser.currentToken())) {
8539 target = parser.requireElement("expression");
8540 }
8541 return new _ResetCommand(target);
8542 }
8543 resolve(ctx, { target }) {
8544 var elt = target || ctx.me;
8545 ctx.meta.runtime.implicitLoop(elt, function(e) {

Callers

nothing calls this directly

Calls 4

matchTokenMethod · 0.45
commandBoundaryMethod · 0.45
currentTokenMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected