mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
withRootNode already copies into the pointer.
This commit is contained in:
parent
7c40ca0753
commit
661805e6da
@ -48,7 +48,6 @@ parseToAST parseTimeout language b@Blob{..} = do
|
||||
if treePtr == nullPtr then
|
||||
pure (Left "tree-sitter: null root node")
|
||||
else do
|
||||
TS.ts_tree_root_node_p treePtr rootPtr
|
||||
ptr <- peek rootPtr
|
||||
Right <$> anaM toAST ptr
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user