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

16 lines
322 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