mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
11 lines
223 B
Plaintext
11 lines
223 B
Plaintext
/**
|
|
* @name Test for try catches
|
|
*/
|
|
import csharp
|
|
|
|
from Method m
|
|
where m.getName() = "MainTryThrow"
|
|
and count(LocalVariable v | v.getEnclosingCallable() = m
|
|
and v.getName() = "e") = 1
|
|
select m
|