Files
codeql/csharp/ql/test/library-tests/attributes/Attributes1.ql
2018-12-20 10:19:59 +01:00

12 lines
286 B
Plaintext

/**
* @name Test that types, methods, and parameters can have attributes
*/
import csharp
where
exists(Attribute a | a.getTarget() instanceof Type) and
exists(Attribute a | a.getTarget() instanceof Method) and
exists(Attribute a | a.getTarget() instanceof Parameter)
select 1