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

Method parse

www/js/_hyperscript.esm.js:7386–7394  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

7384 this.args = { result: expr };
7385 }
7386 static parse(parser) {
7387 var isCall = parser.matchToken("call");
7388 if (!isCall && !parser.matchToken("get")) return;
7389 var expr = parser.requireElement("expression");
7390 if (isCall && expr && expr.type !== "functionCall") {
7391 parser.raiseError("Must be a function invocation");
7392 }
7393 return new _GetCommand(expr);
7394 }
7395 resolve(context, { result }) {
7396 context.result = result;
7397 return this.findNext(context);

Callers

nothing calls this directly

Calls 3

matchTokenMethod · 0.45
requireElementMethod · 0.45
raiseErrorMethod · 0.45

Tested by

no test coverage detected