diff options
Diffstat (limited to 'server/src/vm')
-rw-r--r-- | server/src/vm/emmy.lua | 2 | ||||
-rw-r--r-- | server/src/vm/function.lua | 2 | ||||
-rw-r--r-- | server/src/vm/ipairs.lua | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua index 4ecef4d3..32c21e45 100644 --- a/server/src/vm/emmy.lua +++ b/server/src/vm/emmy.lua @@ -271,7 +271,7 @@ function mt:doEmmyFunctionType(action) local emmyMgr = self.emmyMgr self:instantSource(action) local funcObj = emmyMgr:addFunctionType(action) - ---@type function + ---@type emmyFunction local func = functionMgr.create(action) for i = 1, #action // 2 do local nameSource = action[i*2-1] diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua index 593d40dd..1ba49f9c 100644 --- a/server/src/vm/function.lua +++ b/server/src/vm/function.lua @@ -6,7 +6,7 @@ local listMgr = require 'vm.list' local Watch = setmetatable({}, {__mode = 'kv'}) ----@class function +---@class emmyFunction local mt = {} mt.__index = mt mt.type = 'function' diff --git a/server/src/vm/ipairs.lua b/server/src/vm/ipairs.lua index b8d821ef..58c7d827 100644 --- a/server/src/vm/ipairs.lua +++ b/server/src/vm/ipairs.lua @@ -1,12 +1,12 @@ local mt = require 'vm.manager' ----@param func function +---@param func emmyFunction function mt:callIpairs(func, values, source) local tbl = values[1] func:setReturn(2, tbl) end ----@param func function +---@param func emmyFunction function mt:callAtIpairs(func, values, source) local tbl = values[1] if tbl then @@ -20,13 +20,13 @@ function mt:callAtIpairs(func, values, source) end end ----@param func function +---@param func emmyFunction function mt:callPairs(func, values, source) local tbl = values[1] func:setReturn(2, tbl) end ----@param func function +---@param func emmyFunction function mt:callNext(func, values, source) local tbl = values[1] if tbl then |