Files
codeql/csharp/ql/test/library-tests/enums/Enums9.ql
2023-11-10 08:46:15 +01:00

16 lines
321 B
Plaintext

/**
* @name Test for enums
*/
import csharp
from EnumConstant c
where
c.getName() = "Green" and
c.getDeclaringType().hasFullyQualifiedName("Enums", "SparseColor") and
c.getType() = c.getDeclaringType() and
c.getValue() = "10" and
c.getUnderlyingType() instanceof IntType and
c.hasExplicitValue()
select c