MCPcopy Index your code
hub / github.com/antlr/antlr4 / complement

Method complement

runtime/JavaScript/src/antlr4/misc/IntervalSet.js:84–90  ·  view source on GitHub ↗
(start, stop)

Source from the content-addressed store, hash-verified

82 }
83
84 complement(start, stop) {
85 const result = new IntervalSet();
86 result.addInterval(new Interval(start, stop + 1));
87 if(this.intervals !== null)
88 this.intervals.forEach(toRemove => result.removeRange(toRemove));
89 return result;
90 }
91
92 contains(item) {
93 if (this.intervals === null) {

Callers

nothing calls this directly

Calls 2

addIntervalMethod · 0.95
removeRangeMethod · 0.95

Tested by

no test coverage detected