refactor(lua): improve type annotations

This commit is contained in:
Lewis Russell
2024-06-11 12:05:18 +01:00
committed by Lewis Russell
parent d8e384b7bf
commit 5e49ef0af3
20 changed files with 64 additions and 369 deletions

View File

@ -98,9 +98,9 @@ local LanguageTree = {}
LanguageTree.__index = LanguageTree
--- @package
--- @nodoc
---
--- |LanguageTree| contains a tree of parsers: the root treesitter parser for {lang} and any
--- LanguageTree contains a tree of parsers: the root treesitter parser for {lang} and any
--- "injected" language parsers, which themselves may inject other languages, recursively.
---
---@param source (integer|string) Buffer or text string to parse
@ -951,7 +951,7 @@ function LanguageTree:_edit(
end
end
---@package
---@nodoc
---@param bufnr integer
---@param changed_tick integer
---@param start_row integer
@ -1023,12 +1023,12 @@ function LanguageTree:_on_bytes(
)
end
---@package
---@nodoc
function LanguageTree:_on_reload()
self:invalidate(true)
end
---@package
---@nodoc
function LanguageTree:_on_detach(...)
self:invalidate(true)
self:_do_callback('detach', ...)