()
| 772 | } |
| 773 | |
| 774 | nextWORD(): Cursor { |
| 775 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
| 776 | let nextCursor: Cursor = this |
| 777 | // If we're on a non-whitespace character, move to the next whitespace |
| 778 | while (!nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) { |
| 779 | nextCursor = nextCursor.right() |
| 780 | } |
| 781 | // now move to the next non-whitespace character |
| 782 | while (nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) { |
| 783 | nextCursor = nextCursor.right() |
| 784 | } |
| 785 | return nextCursor |
| 786 | } |
| 787 | |
| 788 | endOfWORD(): Cursor { |
| 789 | if (this.isAtEnd()) { |
no test coverage detected