Files
codeql/csharp/ql/test/library-tests/expressions/Is1.ql
2018-08-02 17:53:23 +01:00

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