(
state: {
type: 'operatorTextObj'
op: Operator
count: number
scope: TextObjScope
},
input: string,
ctx: TransitionContext,
)
| 350 | } |
| 351 | |
| 352 | function fromOperatorTextObj( |
| 353 | state: { |
| 354 | type: 'operatorTextObj' |
| 355 | op: Operator |
| 356 | count: number |
| 357 | scope: TextObjScope |
| 358 | }, |
| 359 | input: string, |
| 360 | ctx: TransitionContext, |
| 361 | ): TransitionResult { |
| 362 | if (TEXT_OBJ_TYPES.has(input)) { |
| 363 | return { |
| 364 | execute: () => |
| 365 | executeOperatorTextObj(state.op, state.scope, input, state.count, ctx), |
| 366 | } |
| 367 | } |
| 368 | return { next: { type: 'idle' } } |
| 369 | } |
| 370 | |
| 371 | function fromFind( |
| 372 | state: { type: 'find'; find: FindType; count: number }, |
no test coverage detected