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/name.lua | |
parent | a6148c4a1488525c9ddc60c3769479642f2b3c9d (diff) | |
download | lua-language-server-73244793bda51290b1028ab1f764867f33cabbc5.zip |
整理代码
Diffstat (limited to 'script-beta/core/hover/name.lua')
-rw-r--r-- | script-beta/core/hover/name.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index ea1906ed..46d79c87 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -1,19 +1,19 @@ local guide = require 'parser.guide' -local getClass = require 'core.hover.class' +local vm = require 'vm' local function asLocal(source) return guide.getName(source) end local function asMethod(source) - local class = getClass(source.node) + local class = vm.getClass(source.node) local node = class or guide.getName(source.node) or '?' local method = guide.getName(source) return ('%s:%s'):format(node, method) end local function asField(source) - local class = getClass(source.node) + local class = vm.getClass(source.node) local node = class or guide.getName(source.node) or '?' local method = guide.getName(source) return ('%s.%s'):format(node, method) |