Files
codeql/csharp/ql/test/library-tests/attributes/Attributes1.ql
2018-08-02 17:53:23 +01:00

10 lines
283 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