MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / nextWORD

Method nextWORD

src/utils/Cursor.ts:749–761  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747 }
748
749 nextWORD(): Cursor {
750 // eslint-disable-next-line @typescript-eslint/no-this-alias
751 let nextCursor: Cursor = this
752 // If we're on a non-whitespace character, move to the next whitespace
753 while (!nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) {
754 nextCursor = nextCursor.right()
755 }
756 // now move to the next non-whitespace character
757 while (nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) {
758 nextCursor = nextCursor.right()
759 }
760 return nextCursor
761 }
762
763 endOfWORD(): Cursor {
764 if (this.isAtEnd()) {

Callers 3

endOfWORDMethod · 0.80
getOperatorRangeFunction · 0.80
applySingleMotionFunction · 0.80

Calls 3

isOverWhitespaceMethod · 0.80
isAtEndMethod · 0.80
rightMethod · 0.80

Tested by

no test coverage detected