mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
219 B
Plaintext
15 lines
219 B
Plaintext
/**
|
|
* @name Test for usings
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m
|
|
where
|
|
m.hasName("MainUsing") and
|
|
count(LocalVariable v |
|
|
v.getVariableDeclExpr().getEnclosingCallable() = m and
|
|
v.hasName("w")
|
|
) = 1
|
|
select m
|