diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-06 23:21:50 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-06 23:21:50 +0800 |
commit | 7d9b22159083dd7b55def45e87bb883060253d30 (patch) | |
tree | fa3f469ca5219a216c9a3edd445afd5a9fe2f00f /script/vm/node.lua | |
parent | bd9566eb4c856d041e705be59e9b62b0a09d3ed4 (diff) | |
download | lua-language-server-7d9b22159083dd7b55def45e87bb883060253d30.zip |
update
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 3 |
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() |