mirror of
https://github.com/github/codeql.git
synced 2026-03-28 02:08:17 +01:00
12 lines
231 B
Plaintext
12 lines
231 B
Plaintext
/**
|
|
* @name Test for checked expression
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, CheckedExpr e
|
|
where m.hasName("MainChecked")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getExpr().(PropertyAccess).getTarget().hasName("Name")
|
|
select m, e
|
|
|