Files
codeql/csharp/ql/test/library-tests/expressions/Call6.ql
2018-08-02 17:53:23 +01:00

16 lines
367 B
Plaintext

/**
* @name Test for calls
*/
import csharp
from Method m, MethodCall e, Method t, CastExpr cast
where m.hasName("OtherAccesses")
and e.getEnclosingCallable() = m
and t = e.getTarget()
and t.hasName("MainAccesses")
and e.getArgument(1) = cast
and cast.getExpr() instanceof IntLiteral
and cast.getExpr().getValue() = "1"
select m, e.getAnArgument(), t