From 1687d66776c9e0f804a79d125daf8b2fa285e943 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 25 Nov 2015 11:57:39 -0500 Subject: [PATCH] expose ts_node start and end point functions --- include/tree_sitter/runtime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tree_sitter/runtime.h b/include/tree_sitter/runtime.h index 1c0b47e8..69f5a1b1 100644 --- a/include/tree_sitter/runtime.h +++ b/include/tree_sitter/runtime.h @@ -53,6 +53,8 @@ typedef struct TSDocument TSDocument; TSLength ts_node_pos(TSNode); TSLength ts_node_size(TSNode); TSPoint ts_node_size_point(TSNode); +TSPoint ts_node_start_point(TSNode); +TSPoint ts_node_end_point(TSNode); TSSymbol ts_node_symbol(TSNode); const char *ts_node_name(TSNode, const TSDocument *); const char *ts_node_string(TSNode, const TSDocument *);