Files
codeql/csharp/ql/test/library-tests/fields/Fields3.ql
2018-12-20 10:19:59 +01:00

16 lines
309 B
Plaintext

/**
* @name Test for fields
*/
import csharp
from Field f
where
f.getName() = "Z" and
f.getDeclaringType().hasQualifiedName("Fields.A") and
f.getType() instanceof IntType and
f.getInitializer().(IntLiteral).getValue() = "100" and
f.isPublic() and
f.isStatic()
select f, f.getType().toString()