Compute a complexity score for a pattern operand. Simpler patterns (bare * wildcards) get lower scores and are preferred as identity terms.
(expr: Expression)
| 1325 | // (repeated) wildcard: this split fails — a different `j` may |
| 1326 | // still produce a capture consistent with the prior binding, |
| 1327 | // so treat it like a failed recursive match, not a success |
| 1328 | // with the capture silently dropped. |
| 1329 | const capture = captureWildcard( |
| 1330 | argName, |
| 1331 | captureOps(j), |
| 1332 | savedSubstitution |
| 1333 | ); |
| 1334 | |
| 1335 | result = |
| 1336 | capture === null |
no test coverage detected