summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-16 17:00:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-16 17:00:56 +0800
commit15fa11654114e7451d64a726f6ad9d6abbd92b35 (patch)
tree6b4cf1e91f505713e5e4a21521567f16b14d5cfa /script/vm/node.lua
parent158a7588081f480809e5d8b50ef098dc5ff70042 (diff)
downloadlua-language-server-15fa11654114e7451d64a726f6ad9d6abbd92b35.zip
improve type infer of recursion alias
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index cec0a36f..0ffd8c70 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -397,7 +397,7 @@ function mt:copy()
return vm.createNode(self)
end
----@param source vm.object | vm.variable
+---@param source vm.node.object | vm.generic
---@param node vm.node | vm.node.object
---@param cover? boolean
---@return vm.node
@@ -428,7 +428,7 @@ function vm.setNode(source, node, cover)
return me
end
----@param source vm.object | vm.variable
+---@param source vm.node.object
---@return vm.node?
function vm.getNode(source)
return vm.nodeCache[source]