var Common;!function(t){!function(t){"use strict";class e{constructor(e,s,a){F12.Tools.Utility.Assert.isTrue(e>=0,"Invalid start offset: "+e.toString());F12.Tools.Utility.Assert.isTrue(s>=e,"Invalid end offset: "+s.toString());this._data=new t.SourceSpanData;this._data.start=e;this._data.end=s;this._isScript=a;this._data.lineOffsets=[];this._data.generatedLineOffset=0;this._data.length=0;this._data.mappings=[]}set _mappings(t){this._data.mappings=t}get _mappings(){return this._data.mappings}get data(){return this._data}get start(){return this._data.start}get end(){return this._data.end}get isScript(){return this._isScript}set generatedLineOffset(t){F12.Tools.Utility.Assert.isTrue(t>=0,"offset is negative");this._data.generatedLineOffset=t}get generatedLineOffset(){return this._data.generatedLineOffset}get lineOffsets(){return this._data.lineOffsets}calculateLineOffsets(t){var e=0;this._data.lineOffsets=[];this._data.lineOffsets[e]=0;this._data.length=t.length;for(var s=0;s<t.length;s++)"\n"===t.charAt(s)&&(this._data.lineOffsets[++e]=s+1);return e}}t.SourceSpanBuilder=e}(t.FormatService||(t.FormatService={}))}(Common||(Common={}));
