diff options
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 dad456a8..128ed029 100644 --- a/server/src/emmy/manager.lua +++ b/server/src/emmy/manager.lua @@ -9,6 +9,7 @@ local newField = require 'emmy.field' local newGeneric = require 'emmy.generic' local newArrayType = require 'emmy.arrayType' local newTableType = require 'emmy.tableType' +local newFuncType = require 'emmy.funcType' local mt = {} mt.__index = mt @@ -116,6 +117,11 @@ function mt:addTableType(source, keyType, valueType) return typeObj end +function mt:addFunctionType(source) + local typeObj = newFuncType(self, source) + return typeObj +end + function mt:addAlias(source, typeObj) local aliasName = source[1][1] local aliasObj = newAlias(self, source) |