Member predicate Expr::MemberRefExpr::asMethod

Gets the implicit method corresponding to this member reference expression. The body of this method is a return statement (enclosed in a block) whose expression is either a method access (if the reference is to a method), a class instance creation expression (if the reference is to a constructor) or an array creation expression (if the reference is to an array constructor).

Method asMethod()