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

FlatSignature.jrag

Blame
  • Forked from Anders Blomdell / LabComm
    Source project has a limited visibility.
    • Anders Blomdell's avatar
      98cb774e
      Merge branch 'typeref' · 98cb774e
      Anders Blomdell authored
      Conflicts:
      	compiler/C_CodeGen.jrag
      	compiler/LabCommmTokens.jrag
      	compiler/PrettyPrint.jrag
      	compiler/Signature.jrag
      	lib/c/labcomm_decoder.c
      	lib/c/labcomm_private.h
      98cb774e
      History
      Merge branch 'typeref'
      Anders Blomdell authored
      Conflicts:
      	compiler/C_CodeGen.jrag
      	compiler/LabCommmTokens.jrag
      	compiler/PrettyPrint.jrag
      	compiler/Signature.jrag
      	lib/c/labcomm_decoder.c
      	lib/c/labcomm_private.h
    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();
    }