MCPcopy
hub / github.com/microsoft/vscode-js-debug / getLineOffset

Method getLineOffset

src/common/stringUtils.ts:70–72  ·  view source on GitHub ↗

* Gets the base-0 line number.

(n: number)

Source from the content-addressed store, hash-verified

68 * Gets the base-0 line number.
69 */
70 public getLineOffset(n: number) {
71 return n >= this.lines.length ? this.source.length : this.lines[n];
72 }
73
74 /**
75 * Converts from a base 0 line and column to a file offset.

Callers 1

getStepInTargetsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected