summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachDef.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-05-30 15:54:13 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-05-30 15:54:13 +0800
commit245c99bb1ca69dab538c3106b640a478f963d6ed (patch)
treeac94261beaf5ca526316fbe9223057c1da518fe5 /script-beta/vm/eachDef.lua
parentfee8530cfa83c11e76def4f2ab891a9a7cb25c81 (diff)
downloadlua-language-server-245c99bb1ca69dab538c3106b640a478f963d6ed.zip
整理代码
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r--script-beta/vm/eachDef.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua
index e30e3b51..2f29aa83 100644
--- a/script-beta/vm/eachDef.lua
+++ b/script-beta/vm/eachDef.lua
@@ -3,10 +3,14 @@ local guide = require 'parser.guide'
local function eachDef(source)
local lib = vm.getLibrary(source)
+ local value = guide.getObjectValue(source)
local results = guide.requestDefinition(source)
if lib then
results[#results+1] = lib
end
+ if value then
+ results[#results+1] = value
+ end
return results
end