mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
15 lines
319 B
Plaintext
15 lines
319 B
Plaintext
/**
|
|
* @name Test for constants
|
|
*/
|
|
import csharp
|
|
|
|
from MemberConstant c
|
|
where c.getName() = "Y"
|
|
and c.getDeclaringType().hasQualifiedName("Constants.A")
|
|
and c.getType() instanceof IntType
|
|
and c.getInitializer() instanceof IntLiteral
|
|
and c.isPublic()
|
|
and c.getValue() = "10"
|
|
select c, c.getType().toString()
|
|
|