MCPcopy Create free account
hub / github.com/nodejs/node / onSelectLine

Method onSelectLine

deps/v8/tools/turbolizer/src/views/code-view.ts:219–227  ·  view source on GitHub ↗
(lineNumber: number, doClear: boolean)

Source from the content-addressed store, hash-verified

217 }
218
219 private onSelectLine(lineNumber: number, doClear: boolean) {
220 if (doClear) {
221 this.sourcePositionSelectionHandler.clear();
222 }
223 const positions = this.sourceResolver.lineToSourcePositions(lineNumber - 1);
224 if (positions !== undefined) {
225 this.sourcePositionSelectionHandler.select(positions, undefined);
226 }
227 }
228
229 private onSelectSourcePosition(sourcePosition: SourcePosition, doClear: boolean) {
230 if (doClear) {

Callers 1

initializeCodeMethod · 0.80

Calls 3

lineToSourcePositionsMethod · 0.80
clearMethod · 0.65
selectMethod · 0.65

Tested by

no test coverage detected