diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-28 14:59:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-28 14:59:18 +0800 |
commit | e25be4fc724d0cc56b12c6453426763c750a7dc7 (patch) | |
tree | aed52b65331a72b7999e1e627095c1bcdf0795f8 /server/src/core/hover_name.lua | |
parent | 22c78de4cc682ff31cbf16abc3688eba35df62cb (diff) | |
download | lua-language-server-e25be4fc724d0cc56b12c6453426763c750a7dc7.zip |
运行时分析meta方法
Diffstat (limited to 'server/src/core/hover_name.lua')
-rw-r--r-- | server/src/core/hover_name.lua | 4 |
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 |