1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

TSLength is many things.

This commit is contained in:
Rob Rix 2015-11-24 14:13:41 -05:00
parent 3bc87b03aa
commit ff5797fde5

View File

@ -30,6 +30,7 @@ foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime
foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime.h ts_document_free" ts_document_free :: Foreign.Ptr TSDocument -> IO ()
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)