summaryrefslogtreecommitdiff
path: root/server/src/core/hover_name.lua
diff options
context:
space:
mode:
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