mirror of
https://github.com/github/codeql.git
synced 2026-03-23 16:06:47 +01:00
17 lines
448 B
Plaintext
17 lines
448 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
|
|
|