mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
13 lines
321 B
Plaintext
13 lines
321 B
Plaintext
/**
|
|
* @name Test for generic parameter types
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Class c, Method m
|
|
where
|
|
c.getName().matches("A<%") and
|
|
m = c.getAMethod()
|
|
select c, m, m.getAParameter() as p, count(m.(ConstructedMethod).getATypeArgument()),
|
|
p.getType().getName(), count(m.getAParameter()), count(m.getAParameter().getType())
|