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

Method parse

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

Source from the content-addressed store, hash-verified

8034 this.args = { target };
8035 }
8036 static parse(parser) {
8037 if (!parser.matchToken("empty") && !parser.matchToken("clear")) return;
8038 var target = null;
8039 if (!parser.commandBoundary(parser.currentToken())) {
8040 target = parser.requireElement("expression");
8041 }
8042 return new _EmptyCommand(target);
8043 }
8044 resolve(ctx, { target }) {
8045 var elt = target || ctx.me;
8046 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