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

Member predicate VariableCapture::CaptureInput::ClosureExpr::hasBody

Holds if body is the callable body of this closure. A lambda expression only has one body, but in general a locally defined object may have multiple such methods and constructors.

predicate hasBody(Callable body)