mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
15 lines
211 B
Plaintext
15 lines
211 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
|