Skip to content
Snippets Groups Projects
Select Git revision
10 results

DeclNames.jrag

Blame
  • DeclNames.jrag 434 B
    aspect DeclNames {
    	inh String Type.declName();
    	eq Decl.getType().declName() = getName();
    
    	inh String Field.declName();
    	eq StructType.getField(int i).declName() = declName();
        
            //TODO: aspect should be renamed to parent-something
    
            inh Decl Type.parentDecl();
            inh Decl Field.parentDecl();
            eq Decl.getType().parentDecl() = this;
            eq StructType.getField(int i).parentDecl() = parentDecl();
    }