mirror of
https://github.com/neovim/neovim.git
synced 2026-04-24 08:15:41 +00:00
docs(treesitter): fix TSNode:range() type signature #32224
Uses an overload to properly show the different return type based on the input parameter.
This commit is contained in:
@@ -103,18 +103,9 @@ function TSNode:end_() end
|
||||
--- - end row
|
||||
--- - end column
|
||||
--- - end byte (if {include_bytes} is `true`)
|
||||
--- @param include_bytes boolean?
|
||||
--- @return integer, integer, integer, integer
|
||||
function TSNode:range(include_bytes) end
|
||||
|
||||
--- @nodoc
|
||||
--- @param include_bytes false?
|
||||
--- @return integer, integer, integer, integer
|
||||
function TSNode:range(include_bytes) end
|
||||
|
||||
--- @nodoc
|
||||
--- @param include_bytes true
|
||||
--- @return integer, integer, integer, integer, integer, integer
|
||||
--- @overload fun(self: TSNode, include_bytes: true): integer, integer, integer, integer, integer, integer
|
||||
function TSNode:range(include_bytes) end
|
||||
|
||||
--- Get the node's type as a string.
|
||||
|
||||
Reference in New Issue
Block a user