MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / wrapCaptured

Function wrapCaptured

src/compute-engine/boxed-expression/match.ts:901–909  ·  view source on GitHub ↗
(captured: Expression[])

Source from the content-addressed store, hash-verified

899 const optionalSeqWildcards: Expression[] = [];
900
901 for (const op of patternOps) {
902 const wType = wildcardType(op);
903 if (wType === null) {
904 anchors.push(op);
905 } else if (wType === 'Wildcard') {
906 universalWildcards.push(op);
907 } else if (wType === 'Sequence') {
908 sequenceWildcards.push(op);
909 } else {
910 // OptionalSequence
911 optionalSeqWildcards.push(op);
912 }

Callers 1

tryAssignWildcardsFunction · 0.85

Calls 3

isOperatorDefFunction · 0.90
lookupDefinitionMethod · 0.65
functionMethod · 0.65

Tested by

no test coverage detected