Files
codeql/csharp/ql/test/library-tests/attributes/AttributeArguments.ql
2019-03-27 11:10:24 +01:00

14 lines
365 B
Plaintext

import csharp
query predicate arguments(Attribute attribute, int index, Expr e) {
e = attribute.getArgument(index)
}
query predicate constructorArguments(Attribute attribute, int index, Expr e) {
e = attribute.getConstructorArgument(index)
}
query predicate namedArguments(Attribute attribute, string name, Expr e) {
e = attribute.getNamedArgument(name)
}