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

Method parse

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

Source from the content-addressed store, hash-verified

8534 this.args = { target };
8535 }
8536 static parse(parser) {
8537 if (!parser.matchToken("reset")) return;
8538 var target = null;
8539 if (!parser.commandBoundary(parser.currentToken())) {
8540 target = parser.requireElement("expression");
8541 }
8542 return new _ResetCommand(target);
8543 }
8544 resolve(ctx, { target }) {
8545 var elt = target || ctx.me;
8546 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