mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
14 lines
285 B
Plaintext
14 lines
285 B
Plaintext
/**
|
|
* @name Test for fields
|
|
*/
|
|
import csharp
|
|
|
|
from Field f
|
|
where f.getName() = "Y"
|
|
and f.getDeclaringType().hasQualifiedName("Fields.A")
|
|
and f.getType() instanceof IntType
|
|
and not exists(f.getInitializer())
|
|
and f.isPublic() and f.isStatic()
|
|
select f, f.getType().toString()
|
|
|