const nodePos = tmp[i]!;
if (nodePos.node.parent === null || nodePos.nodeStartOffset >= offset) {
hasInvalidVal = true;
continue;
}
}
if (hasInvalidVal) {
for (const entry of tmp) {
if (entry !== null) {
newArr.push(entry);
}
this._cache = newArr;
}
}
}