mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Don’t use record syntax for TSNode.
This commit is contained in:
parent
20b5fe1604
commit
31de4ca26b
@ -31,7 +31,7 @@ foreign import ccall "prototype/External/tree-sitter/include/tree_sitter/runtime
|
||||
|
||||
data TSLength = TsLength CSize CSize
|
||||
deriving (Show, Eq, Generic, CStorable)
|
||||
data TSNode = TsNode { _data :: Foreign.Ptr (), offset :: TSLength }
|
||||
data TSNode = TsNode (Foreign.Ptr ()) TSLength
|
||||
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 TSNode
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user