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