summaryrefslogtreecommitdiff
path: root/server/src/core/hover_name.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-28 14:59:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-28 14:59:18 +0800
commite25be4fc724d0cc56b12c6453426763c750a7dc7 (patch)
treeaed52b65331a72b7999e1e627095c1bcdf0795f8 /server/src/core/hover_name.lua
parent22c78de4cc682ff31cbf16abc3688eba35df62cb (diff)
downloadlua-language-server-e25be4fc724d0cc56b12c6453426763c750a7dc7.zip
运行时分析meta方法
Diffstat (limited to 'server/src/core/hover_name.lua')
-rw-r--r--server/src/core/hover_name.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/hover_name.lua b/server/src/core/hover_name.lua
index d8afe2fc..affc33f3 100644
--- a/server/src/core/hover_name.lua
+++ b/server/src/core/hover_name.lua
@@ -1,8 +1,8 @@
return function (result, source)
local func = result.value
local declarat
- if func.type == 'function' then
- declarat = func.declarat or source
+ if func:getType() == 'function' then
+ declarat = func:getDeclarat() or source
else
declarat = source
end