[ClavaAst] Add MemberExpr.getMemberDecl()
@@ -100,6 +100,10 @@ public class MemberExpr extends Expr {
return getChild(Expr.class, 0);
}
+ public ValueDecl getMemberDecl() {
+ return get(MEMBER_DECL);
+ }
+
// @Override
// public String toContentString() {
// return super.toContentString() + " " + memberName;
@@ -253,4 +257,5 @@ public class MemberExpr extends Expr {
public SpecsList<DataKey<?>> getSignatureKeys() {
return super.getSignatureKeys().andAdd(MEMBER_NAME);
}
+
}
