C#: Replace exists with any.

This commit is contained in:
Michael Nebel
2025-09-02 09:26:37 +02:00
parent 7491352278
commit ef4b41ab6d

View File

@@ -524,10 +524,8 @@ final class AttributeNode extends ElementNode {
*/
final class TypeParameterNode extends ElementNode {
TypeParameterNode() {
exists(TypeParameter typeParameter |
typeParameter = element and
not isNotNeeded(typeParameter.getDeclaringGeneric())
)
element =
any(TypeParameter typeParameter | not isNotNeeded(typeParameter.getDeclaringGeneric()))
}
override ElementNode getChild(int childIndex) { none() }