diff options
Diffstat (limited to 'script/core/signature.lua')
-rw-r--r-- | script/core/signature.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script/core/signature.lua b/script/core/signature.lua index bd823454..2f652f39 100644 --- a/script/core/signature.lua +++ b/script/core/signature.lua @@ -80,11 +80,15 @@ local function makeSignatures(call, pos) end local signs = {} local defs = vm.getDefs(node, 0) + local mark = {} for _, src in ipairs(defs) do src = guide.getObjectValue(src) or src if src.type == 'function' or src.type == 'doc.type.function' then - signs[#signs+1] = makeOneSignature(src, oop, index) + if not mark[src] then + mark[src] = true + signs[#signs+1] = makeOneSignature(src, oop, index) + end end end return signs |