(
document: TextDocument,
position: Position,
vimState: VimState,
forward: boolean,
start: boolean,
)
| 179 | |
| 180 | // Use PythonDocument instance to move to specified class boundary |
| 181 | static moveClassBoundary( |
| 182 | document: TextDocument, |
| 183 | position: Position, |
| 184 | vimState: VimState, |
| 185 | forward: boolean, |
| 186 | start: boolean, |
| 187 | ): Position | IMovement { |
| 188 | const direction = forward ? 'next' : 'prev'; |
| 189 | const edge = start ? 'start' : 'end'; |
| 190 | |
| 191 | return ( |
| 192 | new PythonDocument(document).find('class', direction, edge, position) ?? |
| 193 | failedMovement(vimState) |
| 194 | ); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | // Uses the specified findFunction to execute the motion coupled to the shortcut (keys) |
no test coverage detected