CodeQL library for C#
codeql/csharp-all 1.0.5-dev (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)