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

14 lines
276 B
Plaintext

/**
* @name Test for calls
*/
import csharp
from StaticConstructor c, MethodCall e
where c.hasName("Class")
and e.getEnclosingCallable() = c
and e.hasNoArguments()
and e.getEnclosingStmt() = c.getStatementBody().getStmt(1)
and exists(e.getQualifier())
select c, e