diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-06 19:56:25 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-07 12:01:37 -0800 |
commit | d31a25398347f1646b0c37a27f82ac3771a7cc15 (patch) | |
tree | 9bfa28a766714fdd6e6cebab4c88a444eb2c6fd5 /test/lisp/emacs-lisp/bindat-tests.el | |
parent | a669d5fae54ad31fe65c2e285124bf90f900a08f (diff) | |
download | emacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.tar.gz emacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.tar.bz2 emacs-d31a25398347f1646b0c37a27f82ac3771a7cc15.zip |
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.
Diffstat (limited to 'test/lisp/emacs-lisp/bindat-tests.el')
0 files changed, 0 insertions, 0 deletions