src/vs/editor/contrib/inlineCompletions/browser/utils.ts/PositionOffsetTransformer/constructor
class PositionOffsetTransformer:	constructor(text: string) {
		this.lineStartOffsetByLineIdx = [];
		this.lineStartOffsetByLineIdx.push(0);
		for (let i = 0; i < text.length; i++) {
			if (text.charAt(i) === '\n') {
				this.lineStartOffsetByLineIdx.push(i + 1);
			}
		}
	}