MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fromOperatorTextObj

Function fromOperatorTextObj

src/vim/transitions.ts:350–367  ·  view source on GitHub ↗
(
  state: {
    type: 'operatorTextObj'
    op: Operator
    count: number
    scope: TextObjScope
  },
  input: string,
  ctx: TransitionContext,
)

Source from the content-addressed store, hash-verified

348}
349
350function 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
369function fromFind(
370 state: { type: 'find'; find: FindType; count: number },

Callers 1

transitionFunction · 0.85

Calls 2

executeOperatorTextObjFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected