mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(lua): annotate that TSNode functions can return nil (#24621)
This commit is contained in:
parent
977f9659a7
commit
68f12e7fcb
@ -14,15 +14,15 @@
|
||||
---@field extra fun(self: TSNode): boolean
|
||||
---@field child_count fun(self: TSNode): integer
|
||||
---@field named_child_count fun(self: TSNode): integer
|
||||
---@field child fun(self: TSNode, integer): TSNode
|
||||
---@field named_child fun(self: TSNode, integer): TSNode
|
||||
---@field descendant_for_range fun(self: TSNode, integer, integer, integer, integer): TSNode
|
||||
---@field named_descendant_for_range fun(self: TSNode, integer, integer, integer, integer): TSNode
|
||||
---@field parent fun(self: TSNode): TSNode
|
||||
---@field next_sibling fun(self: TSNode): TSNode
|
||||
---@field prev_sibling fun(self: TSNode): TSNode
|
||||
---@field next_named_sibling fun(self: TSNode): TSNode
|
||||
---@field prev_named_sibling fun(self: TSNode): TSNode
|
||||
---@field child fun(self: TSNode, integer): TSNode?
|
||||
---@field named_child fun(self: TSNode, integer): TSNode?
|
||||
---@field descendant_for_range fun(self: TSNode, integer, integer, integer, integer): TSNode?
|
||||
---@field named_descendant_for_range fun(self: TSNode, integer, integer, integer, integer): TSNode?
|
||||
---@field parent fun(self: TSNode): TSNode?
|
||||
---@field next_sibling fun(self: TSNode): TSNode?
|
||||
---@field prev_sibling fun(self: TSNode): TSNode?
|
||||
---@field next_named_sibling fun(self: TSNode): TSNode?
|
||||
---@field prev_named_sibling fun(self: TSNode): TSNode?
|
||||
---@field named_children fun(self: TSNode): TSNode[]
|
||||
---@field has_changes fun(self: TSNode): boolean
|
||||
---@field equal fun(self: TSNode, other: TSNode): boolean
|
||||
|
Loading…
Reference in New Issue
Block a user