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