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

Method parse

www/js/_hyperscript-max.js:4308–4316  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

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