Added Derived Class count query

This commit is contained in:
Peter Villadsen 2021-04-16 15:31:30 -07:00
Родитель fdae2b5281
Коммит d318329856
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,16 @@
(: Copyright (c) Microsoft Corporation.
Licensed under the MIT license. :)
(: List classes with the number of derived classes :)
(: @Category Informational :)
(: @Language Xpp :)
<DerivedClassCounts>
{
for $c in /Class
let $count := count(/Class[@Extends=$c/@Name])
where $count != 0
order by $count descending
return <DerivedClasses Name='{$c/@Name}' Count='{$count}' />
}
</DerivedClassCounts>