]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid treesit-related byte-compiler warnings
authorEli Zaretskii <eliz@gnu.org>
Wed, 28 Dec 2022 14:41:58 +0000 (16:41 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 28 Dec 2022 14:41:58 +0000 (16:41 +0200)
* lisp/progmodes/json-ts-mode.el (treesit-node-child-by-field-name):
* lisp/textmodes/toml-ts-mode.el (treesit-node-child-by-field-name):
* lisp/progmodes/java-ts-mode.el (treesit-node-child-by-field-name):
* lisp/progmodes/csharp-mode.el
(treesit-node-child-by-field-name): Avoid byte-compilation
warnings about treesit-node-type.

lisp/progmodes/csharp-mode.el
lisp/progmodes/java-ts-mode.el
lisp/progmodes/json-ts-mode.el
lisp/textmodes/toml-ts-mode.el

index b967571db7d78f16fa4bf14124eb28bb897e2042..66e4a65184c15286afe168fa4c86916792c576c3 100644 (file)
@@ -43,6 +43,7 @@
 (declare-function treesit-parser-create "treesit.c")
 (declare-function treesit-induce-sparse-tree "treesit.c")
 (declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-type "treesit.c")
 (declare-function treesit-node-child-by-field-name "treesit.c")
 
 (defgroup csharp nil
index 6dd69a44a4aeabf08876f44d02a8f258c2b8e41a..c13cf032c44530595b5326420c35c4ab6fdf0207 100644 (file)
@@ -34,6 +34,7 @@
 (declare-function treesit-parser-create "treesit.c")
 (declare-function treesit-induce-sparse-tree "treesit.c")
 (declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-type "treesit.c")
 (declare-function treesit-node-child-by-field-name "treesit.c")
 
 (defcustom java-ts-mode-indent-offset 4
index 2a467dcceccaebf0d227d88e7a3448bf9c500423..adba2f820fa1df9b76cfb38305b862222f17ef55 100644 (file)
@@ -33,6 +33,7 @@
 (declare-function treesit-parser-create "treesit.c")
 (declare-function treesit-induce-sparse-tree "treesit.c")
 (declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-type "treesit.c")
 (declare-function treesit-node-child-by-field-name "treesit.c")
 
 
index 7771cfa6e2ac0168413a3864a727989195af9bb0..983a1401008c59a5aed1f5a649d2c7f1f638538c 100644 (file)
@@ -32,6 +32,7 @@
 (declare-function treesit-parser-create "treesit.c")
 (declare-function treesit-induce-sparse-tree "treesit.c")
 (declare-function treesit-node-start "treesit.c")
+(declare-function treesit-node-type "treesit.c")
 (declare-function treesit-node-child-by-field-name "treesit.c")
 
 (defcustom toml-ts-mode-indent-offset 2