mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
14 lines
343 B
Plaintext
14 lines
343 B
Plaintext
/**
|
|
* @name Test for property access
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, PropertyAccess e
|
|
where m.hasName("MainAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getTarget().getName() = "Name"
|
|
and e.getTarget().getDeclaringType() = m.getDeclaringType()
|
|
and e.getQualifier().(ParameterAccess).getTarget().getName() = "other"
|
|
select m, e
|
|
|