diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-30 17:16:13 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-30 17:16:13 +0800 |
commit | e683d90bdb40ed07ad3f1b53ca94b0d299382c74 (patch) | |
tree | f6c7f1d8d7906ab6f962ce0660248f0ebf94ba75 /server/src/emmy/manager.lua | |
parent | cf97b3bf418d73894bb7849b6c02e40c753425bb (diff) | |
download | lua-language-server-e683d90bdb40ed07ad3f1b53ca94b0d299382c74.zip |
emmyTableType
Diffstat (limited to 'server/src/emmy/manager.lua')
-rw-r--r-- | server/src/emmy/manager.lua | 6 |
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) |