mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
13 lines
344 B
Plaintext
13 lines
344 B
Plaintext
/**
|
|
* @name Test for parameter access
|
|
*/
|
|
import csharp
|
|
|
|
from Property p, ParameterAccess e
|
|
where p.hasName("Name")
|
|
and e.getEnclosingCallable() = p.getSetter()
|
|
and e.getTarget().getName() = "value"
|
|
and e.getEnclosingStmt().(ExprStmt).getExpr() instanceof AssignExpr
|
|
and e.getTarget().getDeclaringElement() = p.getSetter()
|
|
select p, e
|