mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Remove withAlloc
.
This commit is contained in:
parent
ac6173fd8a
commit
3f97be8df8
@ -102,11 +102,6 @@ toTerm document contents (node, category) = do
|
||||
keyedProductions = Data.Set.fromList [ "object" ]
|
||||
fixedProductions = Data.Set.fromList [ "pair", "rel_op", "math_op", "bool_op", "bitwise_op", "type_op", "math_assignment", "assignment", "subscript_access", "member_access", "new_expression", "function_call", "function", "ternary" ]
|
||||
|
||||
withAlloc :: Storable a => (Ptr a -> IO b) -> IO b
|
||||
withAlloc writer = do
|
||||
node <- mallocForeignPtr
|
||||
withForeignPtr node writer
|
||||
|
||||
namedChildren :: Ptr TSNode -> IO [Ptr TSNode]
|
||||
namedChildren node = do
|
||||
count <- ts_node_p_named_child_count node
|
||||
|
Loading…
Reference in New Issue
Block a user