MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / fromOperatorTextObj

Function fromOperatorTextObj

source code/vim/transitions.ts:352–369  ·  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

350}
351
352function 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
371function fromFind(
372 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