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

Method parse

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

Source from the content-addressed store, hash-verified

8484 this.args = { target };
8485 }
8486 static parse(parser) {
8487 if (!parser.matchToken("empty") && !parser.matchToken("clear")) return;
8488 var target = null;
8489 if (!parser.commandBoundary(parser.currentToken())) {
8490 target = parser.requireElement("expression");
8491 }
8492 return new _EmptyCommand(target);
8493 }
8494 resolve(ctx, { target }) {
8495 var elt = target || ctx.me;
8496 if (Array.isArray(elt)) {

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