mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
237 B
Plaintext
13 lines
237 B
Plaintext
/**
|
|
* @name Test for field access
|
|
*/
|
|
import csharp
|
|
|
|
from StaticConstructor c, FieldAccess e
|
|
where c.hasName("Class")
|
|
and e.getEnclosingCallable() = c
|
|
and e.getTarget().getName() = "name"
|
|
and exists(e.getQualifier())
|
|
select c, e
|
|
|