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.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/server/src/core/definition.lua b/server/src/core/definition.lua
index e4af5d16..21fd7f96 100644
--- a/server/src/core/definition.lua
+++ b/server/src/core/definition.lua
@@ -126,7 +126,16 @@ local function parseResultAsVar(vm, result, lsp)
end
local function parseValue(vm, value, lsp)
-
+ local positions = {}
+ value:eachInfo(function (info)
+ if info.type == 'set' then
+ positions[#positions+1] = {
+ info.source.start,
+ info.source.finish,
+ }
+ end
+ end)
+ return positions
end
return function (vm, source, lsp)