(
state: { type: 'indent'; dir: '>' | '<'; count: number },
input: string,
ctx: TransitionContext,
)
| 448 | } |
| 449 | |
| 450 | function fromIndent( |
| 451 | state: { type: 'indent'; dir: '>' | '<'; count: number }, |
| 452 | input: string, |
| 453 | ctx: TransitionContext, |
| 454 | ): TransitionResult { |
| 455 | if (input === state.dir) { |
| 456 | return { execute: () => executeIndent(state.dir, state.count, ctx) } |
| 457 | } |
| 458 | return { next: { type: 'idle' } } |
| 459 | } |
| 460 | |
| 461 | // ============================================================================ |
| 462 | // Helper functions for special commands |
no test coverage detected