mirror of
https://github.com/github/codeql.git
synced 2026-02-28 04:43:42 +01:00
13 lines
301 B
Plaintext
13 lines
301 B
Plaintext
/**
|
|
* @name Test for usings
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, LocalVariable v
|
|
where m.hasName("MainUsing")
|
|
and v.getVariableDeclExpr().getEnclosingCallable() = m
|
|
and v.getVariableDeclExpr().getParent() instanceof UsingStmt
|
|
and v.hasName("w")
|
|
and v.getType().hasName("TextWriter")
|
|
select m, v
|