src/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.ts/calculateLF
function calculateLF(node: TreeNode): number {
	if (node === SENTINEL) {
		return 0;
	}

	return node.lf_left + node.piece.lineFeedCnt + calculateLF(node.right);
}