mirror of
https://github.com/github/codeql.git
synced 2026-04-21 06:55:31 +02:00
16 lines
322 B
Plaintext
16 lines
322 B
Plaintext
/**
|
|
* @name Test for enums
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from EnumConstant c
|
|
where
|
|
c.getName() = "Red" and
|
|
c.getDeclaringType().hasFullyQualifiedName("Enums", "SparseColor") and
|
|
c.getType() = c.getDeclaringType() and
|
|
c.getValue() = "0" and
|
|
c.getUnderlyingType() instanceof IntType and
|
|
not c.hasExplicitValue()
|
|
select c
|