mirror of
https://github.com/github/codeql.git
synced 2026-03-22 07:26:45 +01:00
14 lines
279 B
Plaintext
14 lines
279 B
Plaintext
/**
|
|
* @name Test for fields
|
|
*/
|
|
import csharp
|
|
|
|
from Field f, Class c
|
|
where f.getName() = "Black"
|
|
and f.getDeclaringType() = c
|
|
and c.hasQualifiedName("Fields.Color")
|
|
and f.getType() = c
|
|
and f.isStatic() and f.isPublic() and f.isReadOnly()
|
|
select f, f.getDeclaringType()
|
|
|