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

Method parse

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

Source from the content-addressed store, hash-verified

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