summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua1
-rw-r--r--script/parser/luadoc.lua5
2 files changed, 2 insertions, 4 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index e877ddce..831534a7 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -28,7 +28,6 @@ local type = type
---@field extends parser.object[]
---@field types parser.object[]
---@field fields parser.object[]
----@field typeGeneric table<integer, parser.object[]>
---@field tkey parser.object
---@field tvalue parser.object
---@field tindex integer
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