From 29b0c7064b1a0d623867c1136b84e5f1b5038f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 6 Dec 2021 20:37:24 +0800 Subject: fix #842 --- script/core/completion/completion.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'script/core') diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index ba2b0efc..cb2ce8dd 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1354,20 +1354,6 @@ local function getCallEnumsAndFuncs(source, index, oop, call) end end if source.type == 'doc.type.function' then - --[[ - always use literal index, that is: - ``` - ---@class Class - ---@field f(x: number, y: boolean) - local c - - c.f(1, true) -- correct - c:f(1, true) -- also correct - ``` - --]] - if oop then - index = index - 1 - end local arg = source.args[index] if arg and arg.extends then return pushCallEnumsAndFuncs(vm.getDefs(arg.extends)) -- cgit v1.2.3