Added Derived Class count query
This commit is contained in:
Родитель
fdae2b5281
Коммит
d318329856
|
@ -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>
|
Загрузка…
Ссылка в новой задаче