MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / goToPreviousChunk

Function goToPreviousChunk

src/rmarkdown/chunks.ts:368–374  ·  view source on GitHub ↗
(chunks: RMarkdownChunk[] = _getChunks(),
    line: number = _getStartLine())

Source from the content-addressed store, hash-verified

366}
367
368export function goToPreviousChunk(chunks: RMarkdownChunk[] = _getChunks(),
369 line: number = _getStartLine()): void {
370 const previousChunk = getPreviousChunk(chunks, line);
371 if (previousChunk) {
372 void goToChunk(previousChunk);
373 }
374}
375
376export function goToNextChunk(chunks: RMarkdownChunk[] = _getChunks(),
377 line: number = _getStartLine()): void {

Callers

nothing calls this directly

Calls 4

_getChunksFunction · 0.85
_getStartLineFunction · 0.85
getPreviousChunkFunction · 0.85
goToChunkFunction · 0.85

Tested by

no test coverage detected