diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 20:08:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 20:08:49 +0800 |
commit | fdb6fcbab260ffc829550ac59c952791d0ed18b6 (patch) | |
tree | 6e8395bd8f892008f51c4d401f4034b7f6711d05 /server/src/vm/emmy.lua | |
parent | 68e33bf512598a92e8b4432f32603c89b5cacf3a (diff) | |
download | lua-language-server-fdb6fcbab260ffc829550ac59c952791d0ed18b6.zip |
修正emmy function type会提示局部变量未使用的bug
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r-- | server/src/vm/emmy.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua index 45fb13f9..b193a7de 100644 --- a/server/src/vm/emmy.lua +++ b/server/src/vm/emmy.lua @@ -312,7 +312,8 @@ function mt:buildEmmyFunctionType(source) local value = self:createValue(paramType:getType(), typeSource) value:setEmmy(paramType) self:instantSource(nameSource) - func:addArg(nameSource[1], nameSource, value) + local arg = func:addArg(nameSource[1], nameSource, value) + arg:set('emmy arg', true) end end local returns = source.returns |