MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isVisible

Method isVisible

src/cm/rainbowBrackets.ts:229–238  ·  view source on GitHub ↗
(pos: number)

Source from the content-addressed store, hash-verified

227
228 let visibleRangeIndex = 0;
229 const isVisible = (pos: number): boolean => {
230 while (
231 visibleRangeIndex < visibleRanges.length &&
232 pos >= visibleRanges[visibleRangeIndex].to
233 ) {
234 visibleRangeIndex++;
235 }
236 const range = visibleRanges[visibleRangeIndex];
237 return !!range && pos >= range.from && pos < range.to;
238 };
239
240 tree.iterate({
241 from: scanStart,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected