LezerTree.cursorAt method
LezerTree › cursorAt
Unofficial
Create a cursor positioned at the given position.Signature:
cursorAt(pos: number, side?: 0 | 1 | -1 | undefined, mode?: IterMode | undefined): LezerTreeCursorParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | number | The position to start at. |
| side? | 0 | 1 | -1 | undefined | Which side of the position to prefer. |
| mode? | IterMode | undefined | The iteration mode. |
Returns: LezerTreeCursor — A tree cursor.