Files
codeql/csharp/ql/test/library-tests/expressions/Call5.ql
2018-12-20 10:19:59 +01:00

18 lines
450 B
Plaintext

/**
* @name Test for calls
*/
import csharp
from Method m, MethodCall e, Method t
where
m.hasName("OtherAccesses") and
e.getEnclosingCallable() = m and
e.getNumberOfArguments() = 6 and
t = e.getTarget() and
t.hasName("MainAccesses") and
t.getDeclaringType() = m.getDeclaringType().(NestedType).getDeclaringType() and
e.getQualifier() instanceof BaseAccess and
e.getArgument(0) instanceof ThisAccess
select m, e.getAnArgument(), t