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

Method parse

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

Source from the content-addressed store, hash-verified

6990 this.args = { result: expr };
6991 }
6992 static parse(parser) {
6993 var isCall = parser.matchToken("call");
6994 if (!isCall && !parser.matchToken("get")) return;
6995 var expr = parser.requireElement("expression");
6996 if (isCall && expr && expr.type !== "functionCall") {
6997 parser.raiseError("Must be a function invocation");
6998 }
6999 return new _GetCommand(expr);
7000 }
7001 resolve(context, { result }) {
7002 context.result = result;
7003 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