mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
15 lines
441 B
Plaintext
15 lines
441 B
Plaintext
import semmle.code.cil.CIL
|
|
|
|
deprecated private string getTypeArguments(GenericAttribute a) {
|
|
result = "(" + concat(Type t | t = a.getATypeArgument() | t.getName(), ",") + ")"
|
|
}
|
|
|
|
deprecated query predicate genericAttribute(
|
|
GenericAttribute a, string name, int numArgs, string args
|
|
) {
|
|
a.getFile().getStem() = "assembly" and
|
|
name = a.getType().getName() and
|
|
numArgs = a.getNumberOfTypeArguments() and
|
|
args = getTypeArguments(a)
|
|
}
|