798
799
public getValue(eol?: model.EndOfLinePreference, preserveBOM: boolean = false): string {
801
>
if (this.isTooLargeForHeapOperation()) {
802
throw new BugIndicatingError('Operation would exceed heap memory limits');
803
}
805
>
const fullModelRange = this.getFullModelRange();
806
>
const fullModelValue = this.getValueInRange(fullModelRange, eol);
807
>
808
>
if (preserveBOM) {
809
return this._buffer.getBOM() + fullModelValue;
810
}
812
>
return fullModelValue;
813
>
}
814
815
public createSnapshot(preserveBOM: boolean = false): model.ITextSnapshot {