diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-04 21:09:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-04 21:09:55 +0800 |
commit | f732640c8b1aa71c1b5d543c0ded8f6150abbde1 (patch) | |
tree | e4984ea4ff414ec396a4563decc287b4a09e0ab8 /script/vm/sign.lua | |
parent | 1b23b28c7e9f2ecc59dcf19ec2533ab2c4f3e9d9 (diff) | |
download | lua-language-server-f732640c8b1aa71c1b5d543c0ded8f6150abbde1.zip |
fix #1273
Diffstat (limited to 'script/vm/sign.lua')
-rw-r--r-- | script/vm/sign.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/script/vm/sign.lua b/script/vm/sign.lua index 0022538a..a0478751 100644 --- a/script/vm/sign.lua +++ b/script/vm/sign.lua @@ -51,7 +51,7 @@ function mt:resolve(uri, args, removeGeneric) end if n.type == 'doc.type.table' then -- { [integer]: number } -> T[] - local tvalueNode = vm.getTableValue(uri, node, 'integer') + local tvalueNode = vm.getTableValue(uri, node, 'integer', true) if tvalueNode then resolve(object.node, tvalueNode) end @@ -76,8 +76,8 @@ function mt:resolve(uri, args, removeGeneric) end if firstField.type == 'doc.generic.name' and firstValue.type == 'doc.generic.name' then -- { [number]: number} -> { [K]: V } - local tfieldNode = vm.getTableKey(uri, node, 'any') - local tvalueNode = vm.getTableValue(uri, node, 'any') + local tfieldNode = vm.getTableKey(uri, node, 'any', true) + local tvalueNode = vm.getTableValue(uri, node, 'any', true) if tfieldNode then resolve(firstField, tfieldNode) end @@ -87,13 +87,13 @@ function mt:resolve(uri, args, removeGeneric) else if ufieldNode:get(1).type == 'doc.generic.name' then -- { [number]: number}|number[] -> { [K]: number } - local tnode = vm.getTableKey(uri, node, uvalueNode) + local tnode = vm.getTableKey(uri, node, uvalueNode, true) if tnode then resolve(firstField, tnode) end elseif uvalueNode:get(1).type == 'doc.generic.name' then -- { [number]: number}|number[] -> { [number]: V } - local tnode = vm.getTableValue(uri, node, ufieldNode) + local tnode = vm.getTableValue(uri, node, ufieldNode, true) if tnode then resolve(firstValue, tnode) end |