Files
codeql/csharp/ql/test/library-tests/statements/Switch3.ql
2018-12-20 10:19:59 +01:00

10 lines
192 B
Plaintext

/**
* @name Test for default switch cases
*/
import csharp
from Method m, SwitchStmt s
where s.getEnclosingCallable() = m
select m, s.getDefaultCase() as c, c.getLocation().getStartLine()