summaryrefslogtreecommitdiff
path: root/script/vm/global-manager.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-13 19:59:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-13 19:59:45 +0800
commitb3b71716f689be9115cdde8d6caf0314e76ae523 (patch)
treed1859d7a80d635b6157a431c1ef6f51c8a4484f0 /script/vm/global-manager.lua
parent43ef5d13ab20b77da3e4f7626116f0580aa1377e (diff)
downloadlua-language-server-b3b71716f689be9115cdde8d6caf0314e76ae523.zip
cleanup
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r--script/vm/global-manager.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua
index dffc5c73..3f48197f 100644
--- a/script/vm/global-manager.lua
+++ b/script/vm/global-manager.lua
@@ -3,6 +3,8 @@ local guide = require 'parser.guide'
local globalBuilder = require 'vm.global'
local signMgr = require 'vm.sign'
local genericMgr = require 'vm.generic'
+---@class vm
+local vm = require 'vm.vm'
---@class parser.object
---@field _globalNode vm.global
@@ -145,6 +147,7 @@ local compilerGlobalSwitch = util.switch()
end
end)
: case 'doc.class'
+ ---@param source parser.object
: call(function (source)
local uri = guide.getUri(source)
local name = guide.getKeyName(source)
@@ -155,7 +158,7 @@ local compilerGlobalSwitch = util.switch()
if source.signs then
source._sign = signMgr()
for _, sign in ipairs(source.signs) do
- source._sign:addSign(sign)
+ source._sign:addSign(vm.compileNode(sign))
end
if source.extends then
for _, ext in ipairs(source.extends) do
@@ -177,7 +180,7 @@ local compilerGlobalSwitch = util.switch()
if source.signs then
source._sign = signMgr()
for _, sign in ipairs(source.signs) do
- source._sign:addSign(sign)
+ source._sign:addSign(vm.compileNode(sign))
end
source.extends._generic = genericMgr(source.extends, source._sign)
end