Skip to content

SyntaxNode.cursor method

SyntaxNode › cursor

Unofficial

Create a tree cursor starting at this node.

Signature:

cursor(mode?: IterMode | undefined): LezerTreeCursor

Parameters:

Parameter Type Description
mode? IterMode | undefined The iteration mode.

Returns: LezerTreeCursorA tree cursor.