mirror of
https://github.com/github/codeql.git
synced 2026-02-28 04:43:42 +01:00
13 lines
355 B
Plaintext
13 lines
355 B
Plaintext
/**
|
|
* @name Test for local variable declaration statement
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, LocalVariableDeclStmt s, LocalVariableDeclExpr e
|
|
where m.getName() = "MainLocalVarDecl"
|
|
and s.getEnclosingCallable() = m
|
|
and s.getAVariableDeclExpr() = e
|
|
and e.getVariable().getName() = "a"
|
|
and e.getVariable().getType() instanceof IntType
|
|
select m, s, e
|