Member predicate Callable::Callable::getAnExpressionBody

Gets an expression body of this callable (if any), specified by =>.

Unlike getExpressionBody(), this predicate may return multiple bodies, in the case where the same callable is compiled multiple times. For example, if we compile both A.cs

namespaces N {
  public class C {
    public int M() => 0;
  }
}

and later B.cs

namespaces N {
  public class C {
    public int M() => 1;
  }
}

to the same assembly, then both 0 and 1 are expression bodies of N.C.M().

Expr getAnExpressionBody()