Files
emacs/test/src
Yuan Fu d31a253983 Improve parameter checking in tree-sitter functions
* src/treesit.c (treesit_check_position): Extract out new function.
(Ftreesit_node_first_child_for_pos)
(Ftreesit_node_descendant_for_range): Replace code with the new
function.
(Ftreesit_query_capture): Add missing check for node and parser.  Add
check for range for BEG and END.  Move treesit_initialize to the
beginning of the function.

* test/src/treesit-tests.el (treesit-node-api)
(treesit-query-api): Add tests for out-of-range error.
2022-12-07 12:01:37 -08:00
..
2022-11-20 12:59:39 +01:00
2022-11-20 12:59:39 +01:00
2022-11-20 12:59:39 +01:00
2022-11-18 16:02:19 +01:00
2022-11-18 16:02:19 +01:00