mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
14 lines
280 B
Plaintext
14 lines
280 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(2)
|
|
and not exists(e.getQualifier())
|
|
select c, e
|
|
|