summaryrefslogtreecommitdiff
path: root/server/src/vm/value.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-30 17:16:13 +0800
committersumneko <sumneko@hotmail.com>2019-04-30 17:16:13 +0800
commite683d90bdb40ed07ad3f1b53ca94b0d299382c74 (patch)
treef6c7f1d8d7906ab6f962ce0660248f0ebf94ba75 /server/src/vm/value.lua
parentcf97b3bf418d73894bb7849b6c02e40c753425bb (diff)
downloadlua-language-server-e683d90bdb40ed07ad3f1b53ca94b0d299382c74.zip
emmyTableType
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r--server/src/vm/value.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index d974cec0..6cfaec4b 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -190,6 +190,8 @@ function mt:getChild(index, source)
if type(index) == 'number' then
value = create(emmy:getName(), source)
end
+ elseif emmy.type == 'emmy.tableType' then
+ value = create(emmy:getValueType():getType(), source)
end
end
if not value then
@@ -587,8 +589,12 @@ function mt:setEmmy(emmy)
end)
elseif emmy.type == 'emmy.arrayType' then
---@type EmmyArrayType
- local EmmyArrayType = emmy
- EmmyArrayType:setValue(self)
+ local emmyArrayType = emmy
+ emmyArrayType:setValue(self)
+ elseif emmy.type == 'emmy.tableType' then
+ ---@type EmmyTableType
+ local emmyTableType = emmy
+ emmyTableType:setValue(self)
else
return
end