Changeset 13982


Ignore:
Timestamp:
Nov 7, 2019 12:19:54 PM (10 days ago)
Author:
molsson
Message:

#5843 Added isAttribute method to source components.

Location:
branches/dev-mo-2530/Compiler/ModelicaFrontEnd/src/jastadd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2530/Compiler/ModelicaFrontEnd/src/jastadd/flattening/Flattening.jrag

    r13919 r13982  
    21702170    syn boolean InstBuiltInClassDecl.isBuiltIn() = true;
    21712171    syn boolean SrcBuiltInClassDecl.isBuiltIn()  = true;
    2172     inh boolean SrcClassDecl.isBuiltIn();
    2173     eq Root.getChild().isBuiltIn() = false;
    2174     eq Program.getBuiltInType().isBuiltIn() = true;
    2175     eq Program.getBuiltInFunction().isBuiltIn() = true;
    21762172   
    21772173    syn SourceRoot Root.asSourceRoot() {
  • branches/dev-mo-2530/Compiler/ModelicaFrontEnd/src/jastadd/source/PredefinedTypes.jrag

    r13605 r13982  
    3030    eq SourceRoot.getProgram().getPredefinedType() = computePredefinedType();
    3131    eq Root.getChild().getPredefinedType() = null;
     32   
     33    inh boolean SrcComponentDecl.isAttribute();
     34    inh boolean SrcComponentClause.isAttribute();
     35    eq SourceRoot.getChild().isAttribute()       = false;
     36    eq Program.getPredefinedType().isAttribute() = true;
    3237
    3338   
Note: See TracChangeset for help on using the changeset viewer.