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

Method parse

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

Source from the content-addressed store, hash-verified

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