MCPcopy Index your code
hub / github.com/dataease/SQLBot / _add

Method _add

frontend/public/swagger-ui-bundle.js:26652–26660  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

26650 }
26651 add(s, o) {
26652 var _add = (s) => {
26653 for (var o = 0; o < this.ranges.length && !s.touches(this.ranges[o]); ) o++
26654 for (
26655 var i = this.ranges.slice(0, o);
26656 o < this.ranges.length && s.touches(this.ranges[o]);
26657 )
26658 ((s = s.add(this.ranges[o])), o++)
26659 ;(i.push(s), (this.ranges = i.concat(this.ranges.slice(o))), this._update_length())
26660 }
26661 return (
26662 s instanceof DRange
26663 ? s.ranges.forEach(_add)

Callers

nothing calls this directly

Calls 5

_update_lengthMethod · 0.95
touchesMethod · 0.80
concatMethod · 0.80
addMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected