Skip to content

Commit

Permalink
Hide Text[Symbol.iterator] from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Dec 12, 2024
1 parent 28870f9 commit 04a4ad7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rangeset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,9 @@ function compare<T extends RangeValue>(a: SpanCursor<T>, startA: number,
comparator.comparePoint(pos, clipEnd, a.point, b.point)
} else {
if (clipEnd > pos && !sameValues(a.active, b.active)) comparator.compareRange(pos, clipEnd, a.active, b.active)
else if (end < endB && (dEnd || a.openEnd != b.openEnd) && comparator.boundChange) comparator.boundChange(clipEnd)
}
if (end > endB) break
if ((dEnd || a.openEnd != b.openEnd) && comparator.boundChange) comparator.boundChange(end)
pos = end
if (diff <= 0) a.next()
if (diff >= 0) b.next()
Expand Down
1 change: 1 addition & 0 deletions src/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export abstract class Text implements Iterable<string> {
/// objects that it is made up of. For leaf nodes, this holds null.
abstract readonly children: readonly Text[] | null

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

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

0 comments on commit 04a4ad7

Please sign in to comment.