diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-01-09 17:12:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-01-09 17:12:54 +0800 |
commit | 73244793bda51290b1028ab1f764867f33cabbc5 (patch) | |
tree | 5592fbf14f60016270dcca75190508ff89a3213f /script-beta/core/hover/table.lua | |
parent | a6148c4a1488525c9ddc60c3769479642f2b3c9d (diff) | |
download | lua-language-server-73244793bda51290b1028ab1f764867f33cabbc5.zip |
整理代码
Diffstat (limited to 'script-beta/core/hover/table.lua')
-rw-r--r-- | script-beta/core/hover/table.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index 0cc94103..3c644e0a 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -1,6 +1,5 @@ local vm = require 'vm' local util = require 'utility' -local getClass = require 'core.hover.class' local function getKey(src) local key = vm.getKeyName(src) @@ -8,7 +7,7 @@ local function getKey(src) if not src.index then return '[any]' end - local class = getClass(src.index) + local class = vm.getClass(src.index) if class then return ('[%s]'):format(class) end @@ -32,7 +31,7 @@ end local function getField(src) local tp = vm.getType(src) - local class = getClass(src) + local class = vm.getClass(src) local literal = vm.getLiteral(src) local key = getKey(src) if type(literal) == 'string' and #literal >= 50 then |