Changeset 13568


Ignore:
Timestamp:
Sep 20, 2019 5:10:06 PM (3 months ago)
Author:
amartensen
Message:

#5840 fixed equations for isBuiltIn

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/ModelicaFrontEnd/src/jastadd/flattening/Flattening.jrag

    r13532 r13568  
    21622162    syn boolean InstBuiltInClassDecl.isBuiltIn() = true;
    21632163    syn boolean SrcBuiltInClassDecl.isBuiltIn()  = true;
    2164     syn boolean SrcClassDecl.isBuiltIn()         = root().asSourceRoot().getProgram().getBuiltInTypes().hasChild(this)
    2165             || root().asSourceRoot().getProgram().getBuiltInFunctions().hasChild(this);
     2164    inh boolean SrcClassDecl.isBuiltIn();
     2165    eq Root.getChild().isBuiltIn() = false;
     2166    eq Program.getBuiltInType().isBuiltIn() = true;
     2167    eq Program.getBuiltInFunction().isBuiltIn() = true;
    21662168   
    21672169    syn SourceRoot Root.asSourceRoot() {
     
    21702172    eq SourceRoot.asSourceRoot() = this;
    21712173   
    2172     public boolean List.hasChild(ASTNode node) {
    2173         for(ASTNode child : children) {
    2174             if(child == node) {
    2175                 return true;
    2176             }
    2177         }
    2178         return false;
    2179     }
    2180    
    2181 
    21822174    public void InstComponentModification.collectAttributes(Flattener f,
    21832175            List<FAttribute> attrs, AttributeExpRetriever aer, boolean cls) {
Note: See TracChangeset for help on using the changeset viewer.