mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
369 B
Plaintext
17 lines
369 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
|