summaryrefslogtreecommitdiff
path: root/script/vm/type.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 03:32:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 03:32:57 +0800
commit420812ce4e77ff4143437b2893dd77fc729c7622 (patch)
tree92293fc9ab871147060130e432819ea3c3e6f6b9 /script/vm/type.lua
parent838ce36fdd7abdff0b4cab5e67c2500325178805 (diff)
downloadlua-language-server-420812ce4e77ff4143437b2893dd77fc729c7622.zip
update
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r--script/vm/type.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua
index 05ada9ea..982f937d 100644
--- a/script/vm/type.lua
+++ b/script/vm/type.lua
@@ -84,6 +84,9 @@ function vm.isSubType(uri, child, parent, mark)
return false
end
+ ---@cast child vm.object
+ ---@cast parent vm.object
+
local childName = getNodeName(child)
local parentName = getNodeName(parent)
if childName == 'any'
@@ -146,7 +149,7 @@ end
---@param uri uri
---@param tnode vm.node
----@param knode vm.node
+---@param knode vm.node|string
---@return vm.node?
function vm.getTableValue(uri, tnode, knode)
local result = vm.createNode()