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

Method parse

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

Source from the content-addressed store, hash-verified

8446 this.args = { target };
8447 }
8448 static parse(parser) {
8449 if (!parser.matchToken("focus")) return;
8450 var target = null;
8451 if (!parser.commandBoundary(parser.currentToken())) {
8452 target = parser.requireElement("expression");
8453 }
8454 return new _FocusCommand(target);
8455 }
8456 resolve(ctx, { target }) {
8457 (target || ctx.me).focus();
8458 return this.findNext(ctx);

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