mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
14 lines
301 B
Plaintext
14 lines
301 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
|