summaryrefslogtreecommitdiff
path: root/script/vm/field.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-13 17:22:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-13 17:22:43 +0800
commit8168da31f270fd82c2e541cfd3fc304ffccc1c9c (patch)
tree35bb67a7ad3c2da77416694262ee501972496c1e /script/vm/field.lua
parent0bd4a15ffdf4b890e26e97f7c433696422eb2303 (diff)
downloadlua-language-server-8168da31f270fd82c2e541cfd3fc304ffccc1c9c.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 1bcf0b6b..0968df11 100644
--- a/script/vm/field.lua
+++ b/script/vm/field.lua
@@ -1,7 +1,6 @@
---@class vm
local vm = require 'vm.vm'
local util = require 'utility'
-local compiler = require 'vm.compiler'
local guide = require 'parser.guide'
local searchByNodeSwitch = util.switch()
@@ -18,7 +17,7 @@ local searchByNodeSwitch = util.switch()
local function searchByNode(source, pushResult)
local uri = guide.getUri(source)
- compiler.compileByParentNode(source, nil, function (field)
+ vm.compileByParentNode(source, nil, function (field)
searchByNodeSwitch(field.type, uri, field, pushResult)
end)
end