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

Method parse

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

Source from the content-addressed store, hash-verified

8241 this.args = { target };
8242 }
8243 static parse(parser) {
8244 if (!parser.matchToken("select")) return;
8245 var target = null;
8246 if (!parser.commandBoundary(parser.currentToken())) {
8247 target = parser.requireElement("expression");
8248 }
8249 return new _SelectCommand(target);
8250 }
8251 resolve(ctx, { target }) {
8252 var elt = target || ctx.me;
8253 if (typeof elt.select === "function") elt.select();

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