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

Function includesWildcards

src/compute-engine/boxed-expression/rules.ts:1494–1498  ·  view source on GitHub ↗

Return true if all the wildcards of a are included in b

(a: Expression, b: Expression)

Source from the content-addressed store, hash-verified

1492 const r = applyRule(rule, expr, sub, options);
1493
1494 // Verify that the results are unique
1495 if (r !== null && !results.some((x) => x.value.isSame(r.value)))
1496 results.push(r);
1497 };
1498
1499 // Operator-indexed dispatch (see rule-index.ts). `expr` never changes
1500 // during the scan, so a single candidate pass preserves the declaration
1501 // order (and thus the dedup behavior) of the linear scan. With

Callers 1

parseRuleFunction · 0.85

Calls 1

getWildcardsFunction · 0.85

Tested by

no test coverage detected