diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 14:05:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 14:05:52 +0800 |
commit | 67ae2be22b43fec1c7bab1044842951eba84d37d (patch) | |
tree | a21d6a0f480f98e5d58c80d476bd53391d53a0eb /server-beta/src/vm/getValue.lua | |
parent | c29bbc645b931aa6fb6bff6b0e3da432eedd8ecd (diff) | |
download | lua-language-server-67ae2be22b43fec1c7bab1044842951eba84d37d.zip |
更新 hover
Diffstat (limited to 'server-beta/src/vm/getValue.lua')
-rw-r--r-- | server-beta/src/vm/getValue.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server-beta/src/vm/getValue.lua b/server-beta/src/vm/getValue.lua index c1b3622d..c8d62574 100644 --- a/server-beta/src/vm/getValue.lua +++ b/server-beta/src/vm/getValue.lua @@ -812,8 +812,7 @@ function vm.hasType(source, type) return false end -function vm.getType(source) - local values = vm.getValue(source) +function vm.viewType(values) if not values then return 'any' end @@ -851,6 +850,11 @@ function vm.getType(source) return table.concat(types, '|') end +function vm.getType(source) + local values = vm.getValue(source) + return vm.viewType(values) +end + function vm.getValue(source) if not source then return |