From c2d795bf4ccd479358badfbcbaaa67c8d38ef346 Mon Sep 17 00:00:00 2001 From: liricooli Date: Tue, 15 Mar 2022 00:18:28 +0200 Subject: [PATCH] add bindings to GoToFirstChildForPoint --- bindings.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings.go b/bindings.go index ff378bd8..0606cd32 100644 --- a/bindings.go +++ b/bindings.go @@ -639,6 +639,14 @@ func (c *TreeCursor) GoToFirstChildForByte(b uint32) int64 { return int64(C.ts_tree_cursor_goto_first_child_for_byte(c.c, C.uint32_t(b))) } +func (c *TreeCursor) GoToFirstChildForPoint(GoalPoint Point) int64 { + cGoalPoint := C.TSPoint{ + row: C.uint32_t(GoalPoint.Row), + column: C.uint32_t(GoalPoint.Column), + } + return int64(C.ts_tree_cursor_goto_first_child_for_point(c.c, cGoalPoint)) +} + // QueryErrorType - value that indicates the type of QueryError. type QueryErrorType int