CodeQL library for C#
codeql/csharp-all 0.5.1 (changelog, source)
Search

Predicate isExprInAssertion

Holds if expression e appears in an assertion.

Import path

import semmle.code.csharp.commons.Assertions
predicate isExprInAssertion(Expr e)