mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
13 lines
198 B
Plaintext
13 lines
198 B
Plaintext
/**
|
|
* @name Test for enums
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Expr e
|
|
where
|
|
exists(Assignment a | a.getRValue() = e |
|
|
a.getParent().(Field).getDeclaringType() instanceof Enum
|
|
)
|
|
select e, e.getValue()
|