diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/core/completion/completion.lua | 14 |
1 files changed, 0 insertions, 14 deletions
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)) |