MCPcopy Index your code
hub / github.com/RustPython/RustPython / pushChunk

Function pushChunk

wasm/notebook/src/parse.js:39–49  ·  view source on GitHub ↗
(endLine)

Source from the content-addressed store, hash-verified

37 };
38
39 const pushChunk = (endLine) => {
40 const chunkContent = currentChunkLines.join('\n');
41 chunks.push({
42 chunkContent,
43 chunkType: currentEvalType,
44 chunkId: newChunkId(chunkContent),
45 evalFlags,
46 startLine: currentChunkStartLine,
47 endLine,
48 });
49 };
50
51 for (const [i, line] of iomdLines.entries()) {
52 const lineNum = i + 1; // uses 1-based indexing

Callers 1

iomdParserFunction · 0.85

Calls 3

newChunkIdFunction · 0.85
joinMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected