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

Method parse

www/js/_hyperscript-max.js:8447–8454  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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