MCPcopy
hub / github.com/VSCodeVim/Vim / offset

Method offset

src/common/motion/position.ts:53–55  ·  view source on GitHub ↗

Offsets both the Position's line and character

({ line = 0, character = 0 })

Source from the content-addressed store, hash-verified

51
52 /** Offsets both the Position's line and character */
53 public static offset({ line = 0, character = 0 }): PositionDiff {
54 return new PositionDiff(PositionDiffType.Offset, line, character);
55 }
56
57 /** Sets the Position's line and character exactly */
58 public static exactPosition(position: Position): PositionDiff {

Callers 10

runMethod · 0.80
execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
execJoinLinesMethod · 0.80
ExecuteSurroundMethod · 0.80
identityMethod · 0.80
position.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected