mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
317 B
Plaintext
15 lines
317 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() instanceof ThisAccess
|
|
select m, e
|