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

Function isRuleStep

src/compute-engine/boxed-expression/rules.ts:1506–1508  ·  view source on GitHub ↗
(x: unknown)

Source from the content-addressed store, hash-verified

1504 // order (and thus the dedup behavior) of the linear scan. With
1505 // `recursive`, head dispatch is unsound — keep the linear scan.
1506 const index = options?.recursive
1507 ? undefined
1508 : getRuleIndex(rules.rules, options?.useVariations === true);
1509
1510 if (index === undefined) for (const rule of rules.rules) collect(rule);
1511 else for (const { rule } of candidateRules(index, expr, -1)) collect(rule);

Callers 1

applyRuleFunction · 0.85

Calls 2

isRecordFunction · 0.70
isExpressionFunction · 0.70

Tested by

no test coverage detected