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

Method _subtract

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

Source from the content-addressed store, hash-verified

26667 }
26668 subtract(s, o) {
26669 var _subtract = (s) => {
26670 for (var o = 0; o < this.ranges.length && !s.overlaps(this.ranges[o]); ) o++
26671 for (
26672 var i = this.ranges.slice(0, o);
26673 o < this.ranges.length && s.overlaps(this.ranges[o]);
26674 )
26675 ((i = i.concat(this.ranges[o].subtract(s))), o++)
26676 ;((this.ranges = i.concat(this.ranges.slice(o))), this._update_length())
26677 }
26678 return (
26679 s instanceof DRange
26680 ? s.ranges.forEach(_subtract)

Callers

nothing calls this directly

Calls 4

_update_lengthMethod · 0.95
overlapsMethod · 0.80
concatMethod · 0.80
subtractMethod · 0.45

Tested by

no test coverage detected