mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
16 lines
315 B
Plaintext
16 lines
315 B
Plaintext
/**
|
|
* @name Test for fields
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Field f
|
|
where
|
|
f.getName() = "X" and
|
|
f.getDeclaringType().hasFullyQualifiedName("Fields", "A") and
|
|
f.getType() instanceof IntType and
|
|
f.getInitializer().(IntLiteral).getValue() = "1" and
|
|
f.isPublic() and
|
|
f.isStatic()
|
|
select f, f.getType().toString()
|