mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
13 lines
245 B
Plaintext
13 lines
245 B
Plaintext
/**
|
|
* @name Test for field access
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, FieldAccess e
|
|
where m.hasName("OtherAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getQualifier() instanceof ThisAccess
|
|
and e.getTarget().getName() = "f"
|
|
select m, e
|
|
|