mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
12 lines
195 B
Plaintext
12 lines
195 B
Plaintext
/**
|
|
* @name Test for events
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from RemoveEventAccessor a
|
|
where
|
|
a.getStatementBody().getNumberOfStmts() = 1 and
|
|
a.getStatementBody().getStmt(0) instanceof ExprStmt
|
|
select a
|