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

Method parse

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

Source from the content-addressed store, hash-verified

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