mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
16 lines
322 B
Plaintext
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
|