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

Method parse

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

Source from the content-addressed store, hash-verified

8689 this.args = { target };
8690 }
8691 static parse(parser) {
8692 if (!parser.matchToken("select")) return;
8693 var target = null;
8694 if (!parser.commandBoundary(parser.currentToken())) {
8695 target = parser.requireElement("expression");
8696 }
8697 return new _SelectCommand(target);
8698 }
8699 resolve(ctx, { target }) {
8700 var elt = target || ctx.me;
8701 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