diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 03:25:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 03:25:56 +0800 |
commit | 5f5760aa9b1d5351b41e3c5aba6607721341e49c (patch) | |
tree | 6f635d8825815f6710c97ef01711e52cdf756f90 /script/vm/node.lua | |
parent | 7fdc3519e62f00f236956d272295b241d4bfa762 (diff) | |
download | lua-language-server-5f5760aa9b1d5351b41e3c5aba6607721341e49c.zip |
cleanup
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index eb1ee69d..12e2fd53 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -1,7 +1,7 @@ local union = require 'vm.union' local files = require 'files' ----@alias vm.node vm.node.union +---@alias vm.node vm.union ---@alias vm.object parser.object | vm.global | vm.generic ---@class vm.node-manager @@ -37,7 +37,7 @@ function m.setNode(source, node, cover) end local me = m.nodeCache[source] if not me then - if node.type == 'union' then + if node.type == 'vm.union' then m.nodeCache[source] = node else m.nodeCache[source] = union(node) @@ -55,7 +55,7 @@ end ---@param node vm.node? ---@return vm.node function m.addOptional(node) - if not node or node.type ~= 'union' then + if not node or node.type ~= 'vm.union' then node = union(node) end node = node:addOptional() @@ -63,12 +63,12 @@ function m.addOptional(node) end ---@param node vm.node? ----@return vm.node.union? +---@return vm.union? function m.removeOptional(node) if not node then return node end - if node.type ~= 'union' then + if node.type ~= 'vm.union' then node = union(node) end node = node:removeOptional() @@ -80,7 +80,7 @@ function m.eachObject(node) if not node then return DUMMY_FUNCTION end - if node.type == 'union' then + if node.type == 'vm.union' then return node:eachNode() end local first = true |