diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-06 20:23:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-06 20:23:09 +0800 |
commit | 9471213c956223fc9746d77b2082cd970c6617f8 (patch) | |
tree | a2167b8117bf1d6a76d6bd16c3a7b50813347db4 /script/core/hover/name.lua | |
parent | d060e870a5d24e3e575459a0e02d229d9234109a (diff) | |
download | lua-language-server-9471213c956223fc9746d77b2082cd970c6617f8.zip |
#842
Diffstat (limited to 'script/core/hover/name.lua')
-rw-r--r-- | script/core/hover/name.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/hover/name.lua b/script/core/hover/name.lua index 2d1e361c..5d8f0b3d 100644 --- a/script/core/hover/name.lua +++ b/script/core/hover/name.lua @@ -46,14 +46,14 @@ local function asGlobal(source) return guide.getKeyName(source) end -local function asDocFunction(source) +local function asDocFunction(source, oop) local doc = guide.getParentType(source, 'doc.type') or guide.getParentType(source, 'doc.overload') if not doc or not doc.bindSources then return '' end for _, src in ipairs(doc.bindSources) do - local name = buildName(src) + local name = buildName(src, oop) if name ~= '' then return name end @@ -89,7 +89,7 @@ function buildName(source, oop) return asTableField(source) or '', oop end if source.type == 'doc.type.function' then - return asDocFunction(source), oop + return asDocFunction(source, oop), oop end if source.type == 'doc.field' then return asDocField(source), oop |