Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
9 results

DeclNames.jrag

Blame
  • Forked from Anders Blomdell / LabComm
    251 commits behind the upstream repository.
    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();
    }