summaryrefslogtreecommitdiff
path: root/script/vm/generic.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/generic.lua
parent0bd4a15ffdf4b890e26e97f7c433696422eb2303 (diff)
downloadlua-language-server-8168da31f270fd82c2e541cfd3fc304ffccc1c9c.zip
cleanup
Diffstat (limited to 'script/vm/generic.lua')
-rw-r--r--script/vm/generic.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/generic.lua b/script/vm/generic.lua
index 351b820f..37d2bd13 100644
--- a/script/vm/generic.lua
+++ b/script/vm/generic.lua
@@ -1,5 +1,6 @@
local nodeMgr = require 'vm.node'
local union = require 'vm.union'
+local vm = require 'vm.vm'
---@class parser.object
---@field _generic vm.generic
@@ -115,12 +116,11 @@ end
---@param args parser.object
---@return parser.object
function mt:resolve(uri, args)
- local compiler = require 'vm.compiler'
local resolved = self.sign:resolve(uri, args)
- local protoNode = compiler.compileNode(self.proto)
+ local protoNode = vm.compileNode(self.proto)
local result = union()
for nd in nodeMgr.eachObject(protoNode) do
- local clonedNode = compiler.compileNode(cloneObject(nd, resolved))
+ local clonedNode = vm.compileNode(cloneObject(nd, resolved))
result:merge(clonedNode)
end
return result