fix(treesitter): annotations

- Begin using `@package` in place of `@private` for functions
that are accessed internally but outside their defined class.

- Rename Node -> TSP.Node
This commit is contained in:
Lewis Russell
2023-03-23 11:23:51 +00:00
committed by GitHub
parent c0fe6c040e
commit 4e4203f71b
7 changed files with 48 additions and 43 deletions

View File

@@ -30,8 +30,6 @@ setmetatable(M, {
end,
})
---@diagnostic disable:invisible
--- Creates a new parser
---
--- It is not recommended to use this; use |get_parser()| instead.
@@ -132,7 +130,7 @@ function M.get_parser(bufnr, lang, opts)
return parsers[bufnr]
end
---@private
---@package
---@param bufnr (integer|nil) Buffer number
---@return boolean
function M._has_parser(bufnr)
@@ -276,7 +274,7 @@ function M.get_captures_at_pos(bufnr, row, col)
end
end
end
end, true)
end)
return matches
end