1
1
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:
Rob Rix 2019-09-26 12:54:20 -04:00
parent 7c40ca0753
commit 661805e6da
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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