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

Function _parseCollectionOperand

tools/common/_hyperscript.iife.js:4542–4550  ·  view source on GitHub ↗
(parser, keyword)

Source from the content-addressed store, hash-verified

4540 };
4541 var COLLECTION_KEYWORDS = ["where", "sorted", "mapped", "split", "joined"];
4542 function _parseCollectionOperand(parser, keyword) {
4543 var others = COLLECTION_KEYWORDS.filter((k) => k !== keyword);
4544 var count = parser.pushFollows(...others);
4545 try {
4546 return parser.requireElement("expression");
4547 } finally {
4548 parser.popFollows(count);
4549 }
4550 }
4551 var CollectionOp = class extends Expression {
4552 static grammarName = "collectionOp";
4553 static expressionType = "indirect";

Callers 1

parseMethod · 0.70

Calls 3

pushFollowsMethod · 0.45
requireElementMethod · 0.45
popFollowsMethod · 0.45

Tested by

no test coverage detected