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

Method parse

www/js/_hyperscript.esm.js:4307–4315  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

4305 this.args = { root, target };
4306 }
4307 static parse(parser, root) {
4308 if (!parser.matchToken("in")) return;
4309 var target = parser.requireElement("unaryExpression");
4310 var result = new _InExpression(root, target);
4311 if (parser.matchToken("where")) {
4312 result = new WhereExpression(result, CollectionExpression.parseOperand(parser));
4313 }
4314 return parser.parseElement("indirectExpression", result);
4315 }
4316 resolve(context, { root: rootVal, target }) {
4317 if (rootVal == null) return [];
4318 var returnArr = [];

Callers

nothing calls this directly

Calls 4

matchTokenMethod · 0.45
requireElementMethod · 0.45
parseOperandMethod · 0.45
parseElementMethod · 0.45

Tested by

no test coverage detected