summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-31 10:42:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-31 10:42:27 +0800
commit51a43979dc277e1a4418725cd001b5520d84588d (patch)
treeeefbf7dc228820ff9aea59134022a0bbe5ecf7e5 /script/parser/luadoc.lua
parentd36ceb32aeb95261be630157cbf7389c0d3c8085 (diff)
downloadlua-language-server-51a43979dc277e1a4418725cd001b5520d84588d.zip
#450 add dummy param into param list
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 7e133aa2..74e53718 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1148,10 +1148,6 @@ local function bindParamAndReturnIndex(binded)
return
end
local paramIndex = 0
- local parent = func.parent
- if parent.type == 'setmethod' then
- paramIndex = paramIndex + 1
- end
local paramMap = {}
for _, param in ipairs(func.args) do
paramIndex = paramIndex + 1