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