MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / lineAt

Method lineAt

src/test/datascience/mockDocument.ts:126–132  ·  view source on GitHub ↗
(position: Position | number)

Source from the content-addressed store, hash-verified

124 return undefined;
125 }
126 public lineAt(position: Position | number): TextLine {
127 if (typeof position === 'number') {
128 return this._lines[position as number];
129 } else {
130 return this._lines[position.line];
131 }
132 }
133 public offsetAt(position: Position): number {
134 return this.convertToOffset(position);
135 }

Callers 15

revertCellContentMethod · 0.80
updateCellMetadataMethod · 0.80
getDocumentLinesMethod · 0.80
analyzeNotebookCellMethod · 0.80
_getDocumentSymbolsMethod · 0.80
createDocumentFunction · 0.80
createMockedDocumentFunction · 0.80
editAndSendTelemetryFunction · 0.80
computeNotebookSummaryFunction · 0.80
handleSetNextInputMethod · 0.80

Calls

no outgoing calls

Tested by 1

editAndSendTelemetryFunction · 0.64