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

Member predicate Property::getExpressionBody

Gets the expression body of this property, if any. For example, the expression body of P on line 2 is 20 in

class C {
  public int P => 20;
}
Expr getExpressionBody()