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

Method parse

tools/common/_hyperscript.iife.js:8087–8094  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

8085 this.args = { target };
8086 }
8087 static parse(parser) {
8088 if (!parser.matchToken("reset")) return;
8089 var target = null;
8090 if (!parser.commandBoundary(parser.currentToken())) {
8091 target = parser.requireElement("expression");
8092 }
8093 return new _ResetCommand(target);
8094 }
8095 resolve(ctx, { target }) {
8096 var elt = target || ctx.me;
8097 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