summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-13 22:46:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-13 22:46:02 +0800
commit32fbab2b26bdb6b4c00ed8f467f12e5161ba4c31 (patch)
treeb109f2746be0693a8967734393cd775a876cdb12 /script/vm/infer.lua
parented16d2f27b0c70d5d845435708da387db485719e (diff)
downloadlua-language-server-32fbab2b26bdb6b4c00ed8f467f12e5161ba4c31.zip
new runner
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 712cff10..9bcd3963 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -417,7 +417,8 @@ function mt:viewClass()
end
---@param source parser.object
+---@param uri uri
---@return string?
-function vm.viewObject(source)
- return viewNodeSwitch(source.type, source, {}, guide.getUri(source))
+function vm.viewObject(source, uri)
+ return viewNodeSwitch(source.type, source, {}, uri)
end