text: /*---------------------------------------------------------------------------------------------
   *  Copyright (c) Microsoft Corporation. All rights reserved.
   *  Licensed under the MIT License. See License.txt in the project root for license information.
   *--------------------------------------------------------------------------------------------*/
  define(["require", "exports"], function (require, exports) {
      "use strict";
      Object.defineProperty(exports, "__esModule", { value: true });
      exports.DiffChange = void 0;
      /**
       * Represents information about a specific difference between two sequences.
       */
      class DiffChange {
          /**
           * Constructs a new DiffChange with the given sequence information
           * and content.
           */
          constructor(originalStart, originalLength, modifiedStart, modifiedLength) {
              //Debug.Assert(originalLength > 0 || modifiedLength > 0, "originalLength and modifiedLength cannot both be <= 0");
              this.originalStart = originalStart;
              this.originalLength = originalLength;
              this.modifiedStart = modifiedStart;
              this.modifiedLength = modifiedLength;
          }
          /**
           * The end point (exclusive) of the change in the original sequence.
           */
          getOriginalEnd() {
              return this.originalStart + this.originalLength;
          }
          /**
           * The end point (exclusive) of the change in the modified sequence.
           */
          getModifiedEnd() {
              return this.modifiedStart + this.modifiedLength;
          }
      }
      exports.DiffChange = DiffChange;
  });
  //# __sourceMappingURL=diffChange.js.map