diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-24 20:04:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-24 20:04:08 +0800 |
commit | 38f1b173dd57e163ee7821560566cb59e1ac95cd (patch) | |
tree | 718148a529c39080972b9b70a13048d1ab144412 /script/vm/node | |
parent | e3a0eea7fc75807037a24b630241bf62a0fe1299 (diff) | |
download | lua-language-server-38f1b173dd57e163ee7821560566cb59e1ac95cd.zip |
update
Diffstat (limited to 'script/vm/node')
-rw-r--r-- | script/vm/node/compiler.lua | 1 | ||||
-rw-r--r-- | script/vm/node/global.lua | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/node/compiler.lua b/script/vm/node/compiler.lua index e642856a..33b9b05e 100644 --- a/script/vm/node/compiler.lua +++ b/script/vm/node/compiler.lua @@ -3,6 +3,7 @@ local util = require 'utility' local union = require 'vm.node.union' local localID = require 'vm.local-id' local literalMgr = require 'vm.literal-manager' +local globalMgr = require 'vm.global-manager' ---@class parser.object ---@field _compiledNodes boolean diff --git a/script/vm/node/global.lua b/script/vm/node/global.lua index 499e526b..d5974e63 100644 --- a/script/vm/node/global.lua +++ b/script/vm/node/global.lua @@ -65,6 +65,11 @@ function mt:getName() return self.name end +---@return boolean +function mt:isAlive() + return next(self.links) ~= nil +end + ---@return vm.node.global return function (name) return setmetatable({ |