diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 16:18:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-28 16:18:09 +0800 |
commit | 7de3d6851a41d993b1f84eddd3331067a82e8878 (patch) | |
tree | 5c369a01fb2c21397a15b82263ec624e04fb38b1 /script | |
parent | 75b8b11130cb3baae68082eaa49ecef9a8570e3a (diff) | |
download | lua-language-server-7de3d6851a41d993b1f84eddd3331067a82e8878.zip |
fix infer in table
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/runner.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua index b8ac13fd..8c1e816e 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -304,6 +304,10 @@ function mt:_lookInto(action, topNode, outNode) end elseif action.type == 'getindex' then self:_lookInto(action.index, topNode) + elseif action.type == 'table' then + for _, field in ipairs(action) do + self:_lookInto(field, topNode) + end end ::RETURN:: topNode = self:_fastWard(action.finish, topNode) |