MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / nextWORD

Method nextWORD

restored-src/src/utils/Cursor.ts:774–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772 }
773
774 nextWORD(): Cursor {
775 // eslint-disable-next-line @typescript-eslint/no-this-alias
776 let nextCursor: Cursor = this
777 // If we're on a non-whitespace character, move to the next whitespace
778 while (!nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) {
779 nextCursor = nextCursor.right()
780 }
781 // now move to the next non-whitespace character
782 while (nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) {
783 nextCursor = nextCursor.right()
784 }
785 return nextCursor
786 }
787
788 endOfWORD(): Cursor {
789 if (this.isAtEnd()) {

Callers 3

endOfWORDMethod · 0.45
getOperatorRangeFunction · 0.45
applySingleMotionFunction · 0.45

Calls 3

isOverWhitespaceMethod · 0.45
isAtEndMethod · 0.45
rightMethod · 0.45

Tested by

no test coverage detected