diff options
-rw-r--r-- | script/cli/doc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/cli/doc.lua b/script/cli/doc.lua index 4e9941a4..fb9b0a8e 100644 --- a/script/cli/doc.lua +++ b/script/cli/doc.lua @@ -169,6 +169,7 @@ local function collectTypes(global, results) field.desc = getDesc(source) field.rawdesc = getDesc(source, true) field.extends = packObject(source.extends) + field.visible = vm.getVisibleType(source) return end if source.type == 'setfield' @@ -187,6 +188,7 @@ local function collectTypes(global, results) field.desc = getDesc(source) field.rawdesc = getDesc(source, true) field.extends = packObject(source.value) + field.visible = vm.getVisibleType(source) return end if source.type == 'tableindex' then @@ -207,6 +209,7 @@ local function collectTypes(global, results) field.desc = getDesc(source) field.rawdesc = getDesc(source, true) field.extends = packObject(source.value) + field.visible = vm.getVisibleType(source) return end end) @@ -245,6 +248,8 @@ local function collectVars(global, results) } result.desc = result.desc or getDesc(set) 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) end end if #result.defines == 0 then |