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

Method parse

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

Source from the content-addressed store, hash-verified

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