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

13 lines
312 B
Plaintext

/**
* @name Test that locations are populated for the type parameters of generic methods
*/
import csharp
from UnboundGenericMethod m, TypeParameter tp, int hasLoc
where
m.hasName("fs") and
tp = m.getATypeParameter() and
if exists(tp.getLocation()) then hasLoc = 1 else hasLoc = 0
select m, tp, hasLoc