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

Method parse

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

Source from the content-addressed store, hash-verified

7996 this.args = { target };
7997 }
7998 static parse(parser) {
7999 if (!parser.matchToken("focus")) return;
8000 var target = null;
8001 if (!parser.commandBoundary(parser.currentToken())) {
8002 target = parser.requireElement("expression");
8003 }
8004 return new _FocusCommand(target);
8005 }
8006 resolve(ctx, { target }) {
8007 (target || ctx.me).focus();
8008 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