mirror of
https://github.com/github/codeql.git
synced 2026-02-28 04:43:42 +01:00
11 lines
231 B
Plaintext
11 lines
231 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
|