summaryrefslogtreecommitdiff
path: root/server/src/emmy/manager.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/emmy/manager.lua
parentcf97b3bf418d73894bb7849b6c02e40c753425bb (diff)
downloadlua-language-server-e683d90bdb40ed07ad3f1b53ca94b0d299382c74.zip
emmyTableType
Diffstat (limited to 'server/src/emmy/manager.lua')
-rw-r--r--server/src/emmy/manager.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua
index 45fc1c3d..dad456a8 100644
--- a/server/src/emmy/manager.lua
+++ b/server/src/emmy/manager.lua
@@ -8,6 +8,7 @@ local newReturn = require 'emmy.return'
local newField = require 'emmy.field'
local newGeneric = require 'emmy.generic'
local newArrayType = require 'emmy.arrayType'
+local newTableType = require 'emmy.tableType'
local mt = {}
mt.__index = mt
@@ -110,6 +111,11 @@ function mt:addArrayType(source)
return typeObj
end
+function mt:addTableType(source, keyType, valueType)
+ local typeObj = newTableType(self, source, keyType, valueType)
+ return typeObj
+end
+
function mt:addAlias(source, typeObj)
local aliasName = source[1][1]
local aliasObj = newAlias(self, source)