mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01: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.B")
|
|
and f.getType() instanceof IntType
|
|
and f.getInitializer().(IntLiteral).getValue() = "1"
|
|
and f.isPublic() and f.isStatic()
|
|
select f, f.getType().toString()
|
|
|