summaryrefslogtreecommitdiff
path: root/server/src/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/definition.lua')
-rw-r--r--server/src/core/definition.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua
index b7aadb44..27c6f8eb 100644
--- a/server/src/core/definition.lua
+++ b/server/src/core/definition.lua
@@ -100,8 +100,8 @@ local function parseLocal(vm, source, lsp)
end
local positions = {}
positions[#positions+1] = {
- loc.source.start,
- loc.source.finish,
+ loc:getSource().start,
+ loc:getSource().finish,
}
if #positions == 0 then
return nil
@@ -131,11 +131,11 @@ end
local function parseLabel(vm, label, lsp)
local positions = {}
- label:eachInfo(function (info)
+ label:eachInfo(function (info, src)
if info.type == 'set' then
positions[#positions+1] = {
- info.source.start,
- info.source.finish,
+ src.start,
+ src.finish,
}
end
end)