mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
14 lines
327 B
Plaintext
14 lines
327 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property p
|
|
where
|
|
p.hasName("Init") and
|
|
p.getDeclaringType().hasFullyQualifiedName("Properties", "Test") and
|
|
p.getSetter().getNumberOfParameters() = 1 and
|
|
p.getSetter().getParameter(0) instanceof ImplicitAccessorParameter
|
|
select p, p.getSetter().getParameter(0)
|