[ClavaAst] Adds fields to MemberExpr
@@ -24,6 +24,9 @@ import org.suikasoft.jOptions.Datakey.KeyFactory;
import org.suikasoft.jOptions.Interfaces.DataStore;
import pt.up.fe.specs.clava.ClavaNode;
+import pt.up.fe.specs.clava.ast.decl.NamedDecl;
+import pt.up.fe.specs.clava.ast.decl.ValueDecl;
+import pt.up.fe.specs.clava.language.AccessSpecifier;
import pt.up.fe.specs.util.SpecsCollections;
import pt.up.fe.specs.util.SpecsLogs;
import pt.up.fe.specs.util.collections.SpecsList;
@@ -42,6 +45,13 @@ public class MemberExpr extends Expr {
public final static DataKey<Boolean> IS_ARROW = KeyFactory.bool("isArrow");
+ public final static DataKey<ValueDecl> MEMBER_DECL = KeyFactory.object("memberDecl", ValueDecl.class);
+
+ public final static DataKey<NamedDecl> FOUND_DECL = KeyFactory.object("foundDecl", NamedDecl.class);
+
+ public final static DataKey<AccessSpecifier> FOUND_DECL_ACCESS_SPECIFIER = KeyFactory
+ .enumeration("foundDeclAccessSpecifier", AccessSpecifier.class);
+
/// DATAKEYS END
public MemberExpr(DataStore data, Collection<? extends ClavaNode> children) {
