feat(locals)!: switch to upstream captures

This commit is contained in:
Christian Clason 2023-07-22 15:29:32 +02:00
parent f197a15b0d
commit 5b90ea2aba
109 changed files with 1341 additions and 1341 deletions

View file

@ -41,8 +41,8 @@ function M.get_definitions(bufnr)
local defs = {}
for _, loc in ipairs(locals) do
if loc.definition then
table.insert(defs, loc.definition)
if loc["local.definition"] then
table.insert(defs, loc["local.definition"])
end
end
@ -55,8 +55,8 @@ function M.get_scopes(bufnr)
local scopes = {}
for _, loc in ipairs(locals) do
if loc.scope and loc.scope.node then
table.insert(scopes, loc.scope.node)
if loc["local.scope"] and loc["local.scope"].node then
table.insert(scopes, loc["local.scope"].node)
end
end
@ -69,8 +69,8 @@ function M.get_references(bufnr)
local refs = {}
for _, loc in ipairs(locals) do
if loc.reference and loc.reference.node then
table.insert(refs, loc.reference.node)
if loc["local.reference"] and loc["local.reference"].node then
table.insert(refs, loc["local.reference"].node)
end
end