diff options
Diffstat (limited to 'server/src/vm/function.lua')
-rw-r--r-- | server/src/vm/function.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua index e605e1c9..593d40dd 100644 --- a/server/src/vm/function.lua +++ b/server/src/vm/function.lua @@ -349,6 +349,15 @@ function mt:findEmmyParamByName(name) return nil end +function mt:findEmmyParamByIndex(index) + local arg = self.args[index] + if not arg then + return nil + end + local name = arg:getName() + return self:findEmmyParamByName(name) +end + function mt:addArg(name, source, value) local loc = localMgr.create(name, source, value) self:saveUpvalue(name, loc) |