mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
272 B
Plaintext
15 lines
272 B
Plaintext
/**
|
|
* @name Test for fields
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Field f, UnboundGenericClass c
|
|
where
|
|
f.getName() = "count" and
|
|
f.getDeclaringType() = c and
|
|
c.hasQualifiedName("Fields.C<>") and
|
|
f.getType() instanceof IntType and
|
|
f.isStatic()
|
|
select f, f.getDeclaringType()
|