mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
13 lines
312 B
Plaintext
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
|