Changeset 13863


Ignore:
Timestamp:
Oct 25, 2019 4:50:19 PM (3 weeks ago)
Author:
molsson
Message:

#5843 Added isParameter() and isDiscrete() to SrcComponentClause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2278/Compiler/ModelicaFrontEnd/src/jastadd/util/Util.jrag

    r13843 r13863  
    13131313   
    13141314
    1315     /**
    1316      * Check if this component is declared parameter.
    1317      */
    1318     syn boolean SrcComponentDecl.isParameter() = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().parameterVariability();
    1319    
    1320     /**
    1321      * Check if this component is declared constant.
    1322      */
    1323     syn boolean SrcComponentDecl.isConstant() = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().constantVariability();
    1324    
    1325     /**
    1326      * Check if this component clause is declared constant.
    1327      */
    1328     syn boolean SrcComponentClause.isConstant() = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().constantVariability();
    1329    
    1330     /**
    1331      * Check if this component is declared discrete.
    1332      */
    1333     syn boolean SrcComponentDecl.isDiscrete() = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().discreteVariability();
     1315    syn boolean SrcComponentDecl.isParameter() = myComponentClause().isParameter();
     1316    syn boolean SrcComponentDecl.isConstant()  = myComponentClause().isConstant();
     1317    syn boolean SrcComponentDecl.isDiscrete()  = myComponentClause().isDiscrete();
     1318   
     1319    syn boolean SrcComponentClause.isParameter() = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().parameterVariability();
     1320    syn boolean SrcComponentClause.isConstant()  = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().constantVariability();
     1321    syn boolean SrcComponentClause.isDiscrete()  = hasSrcTypePrefixVariability() && getSrcTypePrefixVariability().discreteVariability();
    13341322
    13351323    /**
Note: See TracChangeset for help on using the changeset viewer.