()
| 747 | } |
| 748 | |
| 749 | nextWORD(): Cursor { |
| 750 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
| 751 | let nextCursor: Cursor = this |
| 752 | // If we're on a non-whitespace character, move to the next whitespace |
| 753 | while (!nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) { |
| 754 | nextCursor = nextCursor.right() |
| 755 | } |
| 756 | // now move to the next non-whitespace character |
| 757 | while (nextCursor.isOverWhitespace() && !nextCursor.isAtEnd()) { |
| 758 | nextCursor = nextCursor.right() |
| 759 | } |
| 760 | return nextCursor |
| 761 | } |
| 762 | |
| 763 | endOfWORD(): Cursor { |
| 764 | if (this.isAtEnd()) { |
no test coverage detected