From 9b35bd7f2468cf55580f842ff8cf2541c9851fa7 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 25 Nov 2015 11:43:31 -0500 Subject: [PATCH] Import the named child count. --- app/Main.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Main.hs b/app/Main.hs index 1031fc17d..c7c36578a 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -52,6 +52,7 @@ instance Storable TSNode where foreign import ccall "app/bridge.h ts_document_root_node_p" ts_document_root_node_p :: Ptr TSDocument -> Ptr TSNode -> IO () foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_node_p_name" ts_node_p_name :: Ptr TSNode -> Ptr TSDocument -> IO CString +foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_node_p_named_child_count" ts_node_p_named_child_count :: Ptr TSNode -> IO CSize main :: IO () main = do