mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
15 lines
296 B
Plaintext
15 lines
296 B
Plaintext
/**
|
|
* @name Test for enums
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from EnumConstant c
|
|
where
|
|
c.getName() = "FourBlue" and
|
|
c.getDeclaringType().hasFullyQualifiedName("Enums", "ValueColor") and
|
|
c.getType() = c.getDeclaringType() and
|
|
c.getValue() = "4" and
|
|
c.getUnderlyingType() instanceof UIntType
|
|
select c
|