mirror of
https://github.com/github/codeql.git
synced 2026-03-05 07:06:47 +01:00
16 lines
295 B
Plaintext
16 lines
295 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property p
|
|
where
|
|
p.hasName("Next") and
|
|
p.isReadOnly() and
|
|
p.isPublic() and
|
|
p.getGetter().hasBody() and
|
|
p.getDeclaringType().hasFullyQualifiedName("Properties", "Counter") and
|
|
not exists(p.getSetter())
|
|
select p, p.getGetter()
|