Skip to content

LezerTree.cursorAt method

LezerTree › cursorAt

Unofficial

Create a cursor positioned at the given position.

Signature:

cursorAt(pos: number, side?: -1 | 0 | 1, mode?: IterMode): LezerTreeCursor

Parameters:

ParameterTypeDescription
posnumberThe position to start at.
side?-1 | 0 | 1Which side of the position to prefer.
mode?IterModeThe iteration mode.

Returns: LezerTreeCursor — A tree cursor.