mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
13 lines
299 B
Plaintext
13 lines
299 B
Plaintext
/**
|
|
* @name Test for is expressions
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, IsTypeExpr e
|
|
where m.hasName("MainIsAsCast")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getExpr().(ParameterAccess).getTarget().getName() = "o"
|
|
and e.getCheckedType().(Class).hasQualifiedName("Expressions.Class")
|
|
select m, e
|
|
|