(expr: Expression)
| 3222 | * handlers it invokes are numbered from `firstOrdinal` again (`site`), the |
| 3223 | * ordinal after those the handler's other operands took. */ |
| 3224 | function beginFoldPass(state: FoldRefinementState, firstOrdinal: number): void { |
| 3225 | state.nextOrdinal[state.depth] = firstOrdinal; |
| 3226 | } |
| 3227 | |
| 3228 | /** |
| 3229 | * The key of the running fold in `records`: its site (`site`), or |
| 3230 | * `undefined` for the outermost fold (nothing re-canonicalizes it within its |
| 3231 | * own window). |
| 3232 | */ |
| 3233 | function foldSiteKey(state: FoldRefinementState): string | undefined { |
| 3234 | return state.depth < 2 ? undefined : state.site.join('.'); |
no test coverage detected