Skip to content

Commit

Permalink
Revert "Add "deprecated" key in JSON output."
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko authored Feb 26, 2024
1 parent 3688b8e commit dd626f2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions script/cli/doc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ local function collectTypes(global, results)
field.rawdesc = getDesc(source, true)
field.extends = packObject(source.value)
field.visible = vm.getVisibleType(source)
local depr = vm.getDeprecated(source)
if (depr and not depr.versions) then
field.deprecated = true
end
return
end
if source.type == 'tableindex' then
Expand Down Expand Up @@ -254,10 +250,6 @@ local function collectVars(global, results)
result.rawdesc = result.rawdesc or getDesc(set, true)
result.defines[#result.defines].extends['desc'] = getDesc(set)
result.defines[#result.defines].extends['rawdesc'] = getDesc(set, true)
local depr = vm.getDeprecated(set)
if (depr and not depr.versions) then
result.defines[#result.defines].extends['deprecated'] = true
end
end
end
if #result.defines == 0 then
Expand Down

0 comments on commit dd626f2

Please sign in to comment.