summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index a47ebe34..5bc566f2 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1263,7 +1263,7 @@ local function bindGeneric(binded)
if doc.type == 'doc.generic' then
for _, obj in ipairs(doc.generics) do
local name = obj.generic[1]
- generics[name] = {}
+ generics[name] = true
end
elseif doc.type == 'doc.param'
or doc.type == 'doc.return'
@@ -1271,8 +1271,7 @@ local function bindGeneric(binded)
guide.eachSourceType(doc, 'doc.type.name', function (src)
local name = src[1]
if generics[name] then
- generics[name][#generics[name]+1] = src
- src.typeGeneric = generics
+ src.type = 'doc.generic.name'
end
end)
end