A text iterator iterates over a sequence of strings. When iterating over a [`Text`](https://codemirror.net/6/docs/ref/#state.Text) document, result values will either be lines or line breaks.
| 4 | either be lines or line breaks. |
| 5 | */ |
| 6 | interface TextIterator extends Iterator<string>, Iterable<string> { |
| 7 | /** |
| 8 | Retrieve the next string. Optionally skip a given number of |
| 9 | positions after the current position. Always returns the object |
| 10 | itself. |
| 11 | */ |
| 12 | next(skip?: number): this; |
| 13 | /** |
| 14 | The current string. Will be the empty string when the cursor is |
| 15 | at its end or `next` hasn't been called on it yet. |
| 16 | */ |
| 17 | value: string; |
| 18 | /** |
| 19 | Whether the end of the iteration has been reached. You should |
| 20 | probably check this right after calling `next`. |
| 21 | */ |
| 22 | done: boolean; |
| 23 | /** |
| 24 | Whether the current string represents a line break. |
| 25 | */ |
| 26 | lineBreak: boolean; |
| 27 | } |
| 28 | /** |
| 29 | The data structure for documents. @nonabstract |
| 30 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected