Skip to content

Commit ef4b41a

Browse files
committed
C#: Replace exists with any.
1 parent 7491352 commit ef4b41a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

csharp/ql/lib/semmle/code/csharp/PrintAst.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,10 +524,8 @@ final class AttributeNode extends ElementNode {
524524
*/
525525
final class TypeParameterNode extends ElementNode {
526526
TypeParameterNode() {
527-
exists(TypeParameter typeParameter |
528-
typeParameter = element and
529-
not isNotNeeded(typeParameter.getDeclaringGeneric())
530-
)
527+
element =
528+
any(TypeParameter typeParameter | not isNotNeeded(typeParameter.getDeclaringGeneric()))
531529
}
532530

533531
override ElementNode getChild(int childIndex) { none() }

0 commit comments

Comments
 (0)