You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TSNode type has cryptic field names, and uses accessor functions for start_byte() and start_point(), but in reality, these two fields correspond directly to fields on the node:
So when loading a node into haskell via the FFI, we can remove the separate startByte and startPoint fields from the Node struct, in order to reduce the amount of data that we copy. This breaks the encapsulation of the TSNode API, but I think that's ok to do in a Tree-sitter binding library.
The text was updated successfully, but these errors were encountered:
The
TSNode
type has cryptic field names, and uses accessor functions forstart_byte()
andstart_point()
, but in reality, these two fields correspond directly to fields on the node:ts_node_start_byte
ts_node_start_point
So when loading a node into haskell via the FFI, we can remove the separate
startByte
andstartPoint
fields from theNode
struct, in order to reduce the amount of data that we copy. This breaks the encapsulation of theTSNode
API, but I think that's ok to do in a Tree-sitter binding library.The text was updated successfully, but these errors were encountered: