diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-07 14:28:50 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-07 14:28:50 +0800 |
commit | 717729c33ce10067aac8afddd2fc2a5da9d801b5 (patch) | |
tree | 9abcc4b9f809372aa9c031f4f9f0087a2c567d91 /server/src/vm/ipairs.lua | |
parent | a2c3b5915949daf39ddf6f044dbc1a5a64ae9847 (diff) | |
download | lua-language-server-717729c33ce10067aac8afddd2fc2a5da9d801b5.zip |
外部判空
Diffstat (limited to 'server/src/vm/ipairs.lua')
-rw-r--r-- | server/src/vm/ipairs.lua | 8 |
1 files changed, 4 insertions, 4 deletions
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 |