1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Include a node directly.

This commit is contained in:
Rob Rix 2015-11-24 14:16:56 -05:00
parent ff5797fde5
commit d60398f115

View File

@ -32,7 +32,7 @@ foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime
data TSLength = TsLength { bytes :: CSize, chars :: CSize }
deriving (Show, Eq, Generic, CStorable)
data TSNode = TsNode deriving (Show, Eq, Generic, CStorable)
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_root_node" ts_document_root_node :: Foreign.Ptr TSDocument -> IO (Foreign.Ptr TSNode)
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_root_node" ts_document_root_node :: Foreign.Ptr TSDocument -> IO TSNode
main :: IO ()
main = do