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

Method parse

www/js/_hyperscript.js:4309–4317  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

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