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

Method parse

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

Source from the content-addressed store, hash-verified

8015 this.args = { target };
8016 }
8017 static parse(parser) {
8018 if (!parser.matchToken("blur")) return;
8019 var target = null;
8020 if (!parser.commandBoundary(parser.currentToken())) {
8021 target = parser.requireElement("expression");
8022 }
8023 return new _BlurCommand(target);
8024 }
8025 resolve(ctx, { target }) {
8026 (target || ctx.me).blur();
8027 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