mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
14 lines
303 B
Plaintext
14 lines
303 B
Plaintext
/**
|
|
* @name Test for fields
|
|
*/
|
|
import csharp
|
|
|
|
from Field f
|
|
where f.getName() = "X"
|
|
and f.getDeclaringType().hasQualifiedName("Fields.A")
|
|
and f.getType() instanceof IntType
|
|
and f.getInitializer().(IntLiteral).getValue() = "1"
|
|
and f.isPublic() and f.isStatic()
|
|
select f, f.getType().toString()
|
|
|