Fix removed types (#8748)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2025-04-28 21:21:18 +05:00 committed by GitHub
parent 80b9b38cf4
commit 87e5bcfe3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -93,6 +93,7 @@
const _class = hierarchy.getClass(desc)
if (_class.label === undefined) continue
if (_class.kind !== ClassifierKind.CLASS) continue
if ((_class as MasterTag).removed === true) continue
added.add(desc)
toAdd.push(_class)
}

View File

@ -35,7 +35,13 @@
const desc = hierarchy.getDescendants(_class)
for (const clazz of desc) {
const cls = hierarchy.getClass(clazz)
if (cls.extends === _class && !cls.hidden && kind === cls.kind && cls.label !== undefined) {
if (
cls.extends === _class &&
!cls.hidden &&
kind === cls.kind &&
cls.label !== undefined &&
(cls as MasterTag).removed !== true
) {
result.push(clazz)
}
}