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

Method parse

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

Source from the content-addressed store, hash-verified

5195 this.args = { value: rhs };
5196 }
5197 static parse(parser) {
5198 var op = parser.matchAnyToken("first", "last", "random");
5199 if (!op) return;
5200 parser.matchAnyToken("in", "from", "of");
5201 var rhs = parser.requireElement("unaryExpression");
5202 return new _PositionalExpression(rhs, op.value);
5203 }
5204 resolve(context, { value: rhsVal }) {
5205 if (rhsVal && !Array.isArray(rhsVal)) {
5206 if (rhsVal.children) {

Callers

nothing calls this directly

Calls 2

matchAnyTokenMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected