summaryrefslogtreecommitdiff
path: root/script/vm/field.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 16:41:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 16:41:27 +0800
commitefbd5902ba2d757e9a74342ae7a3dd290464850c (patch)
tree3cb4c37e90bbab3853d0887159db30e3f6bd4d79 /script/vm/field.lua
parenta7a37c564f0b584b993eaec4c3dd164abdbd543f (diff)
downloadlua-language-server-efbd5902ba2d757e9a74342ae7a3dd290464850c.zip
cleanup
Diffstat (limited to 'script/vm/field.lua')
-rw-r--r--script/vm/field.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/vm/field.lua b/script/vm/field.lua
index 614dc89b..5de838be 100644
--- a/script/vm/field.lua
+++ b/script/vm/field.lua
@@ -2,7 +2,6 @@
local vm = require 'vm.vm'
local util = require 'utility'
local guide = require 'parser.guide'
-local localID = require 'vm.local-id'
local searchByNodeSwitch = util.switch()
: case 'global'
@@ -17,7 +16,7 @@ local searchByNodeSwitch = util.switch()
end)
local function searchByLocalID(source, pushResult)
- local fields = localID.getFields(source)
+ local fields = vm.getLocalFields(source)
if fields then
for _, field in ipairs(fields) do
pushResult(field)