summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-06 23:21:50 +0800
committersumneko <sumneko@hotmail.com>2022-03-06 23:21:50 +0800
commit7d9b22159083dd7b55def45e87bb883060253d30 (patch)
treefa3f469ca5219a216c9a3edd445afd5a9fe2f00f /script/vm/node.lua
parentbd9566eb4c856d041e705be59e9b62b0a09d3ed4 (diff)
downloadlua-language-server-7d9b22159083dd7b55def45e87bb883060253d30.zip
update
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index 79a4d2cb..4200f258 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -1,6 +1,6 @@
local union = require 'vm.union'
----@alias vm.node parser.object | vm.node.union | vm.node.global | vm.node.generic
+---@alias vm.node parser.object | vm.node.union | vm.node.global | vm.node.generic | vm.node.generic-manager
local m = {}
@@ -35,6 +35,7 @@ function m.setNode(source, node)
m.nodeCache[source] = m.mergeNode(me, node)
end
+---@return fun():vm.node
function m.eachNode(node)
if node.type == 'union' then
return node:eachNode()