 + insertLength;
    this.setRange(start, insertEnd, newContents);
    if (removeLength &gt; insertLength) {
      _closeGap(insertEnd, end);
    }
  } else {
    int delta = insertLength - removeLength;
    int newLength = this.length + delta;
    int insertEnd = start + insertLength; &#47;&#47; aka. end + delta.
    this.length = newLength;
    this.setRange(insertEnd, newLength, this, end);
    this.setRange(start, insertEnd, newContents);
  }
}</code></pre>
    </section>

  </div> <!-- /.main-content -