mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
18 lines
330 B
Plaintext
18 lines
330 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property p
|
|
where
|
|
p.hasName("X") and
|
|
p.getDeclaringType().hasQualifiedName("Properties.Point") and
|
|
p.isReadWrite() and
|
|
p.isPublic() and
|
|
exists(p.getGetter()) and
|
|
not p.getGetter().hasBody() and
|
|
exists(p.getSetter()) and
|
|
not p.getSetter().hasBody()
|
|
select p
|