diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion/completion.lua | 3 | ||||
-rw-r--r-- | script/core/hover/return.lua | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index f429ad14..3ec91153 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -20,7 +20,6 @@ local infer = require 'vm.infer' local await = require 'await' local postfix = require 'core.completion.postfix' local globalMgr = require 'vm.global-manager' -local compiler = require 'vm.compiler' local nodeMgr = require 'vm.node' local diagnosticModes = { @@ -1404,7 +1403,7 @@ local function tryCallArg(state, position, results) if arg and arg.type == 'function' then return end - local node = compiler.compileCallArg({ type = 'dummyarg' }, call, argIndex) + local node = vm.compileCallArg({ type = 'dummyarg' }, call, argIndex) local enums = {} for src in nodeMgr.eachObject(node) do if src.type == 'doc.type.string' diff --git a/script/core/hover/return.lua b/script/core/hover/return.lua index cb8fa76f..77710148 100644 --- a/script/core/hover/return.lua +++ b/script/core/hover/return.lua @@ -1,6 +1,6 @@ local infer = require 'vm.infer' local guide = require 'parser.guide' -local compiler = require 'vm.compiler' +local vm = require 'vm.vm' ---@param source parser.object ---@return integer @@ -62,7 +62,7 @@ local function asFunction(source) local returns = {} for i = 1, num do - local rtn = compiler.getReturnOfFunction(source, i) + local rtn = vm.getReturnOfFunction(source, i) local doc = docs[i] local name = doc and doc.name and doc.name[1] and (doc.name[1] .. ': ') local text = ('%s%s%s'):format( |