Skip to content

Commit 04a4ad7

Browse files
committed
Hide Text[Symbol.iterator] from docs
1 parent 28870f9 commit 04a4ad7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rangeset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ function compare<T extends RangeValue>(a: SpanCursor<T>, startA: number,
840840
comparator.comparePoint(pos, clipEnd, a.point, b.point)
841841
} else {
842842
if (clipEnd > pos && !sameValues(a.active, b.active)) comparator.compareRange(pos, clipEnd, a.active, b.active)
843-
else if (end < endB && (dEnd || a.openEnd != b.openEnd) && comparator.boundChange) comparator.boundChange(clipEnd)
844843
}
845844
if (end > endB) break
845+
if ((dEnd || a.openEnd != b.openEnd) && comparator.boundChange) comparator.boundChange(end)
846846
pos = end
847847
if (diff <= 0) a.next()
848848
if (diff >= 0) b.next()

src/text.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export abstract class Text implements Iterable<string> {
146146
/// objects that it is made up of. For leaf nodes, this holds null.
147147
abstract readonly children: readonly Text[] | null
148148

149+
/// @hide
149150
[Symbol.iterator]!: () => Iterator<string>
150151

151152
/// Create a `Text` instance for the given array of lines.

0 commit comments

Comments
 (0)