Changeset d84fc85e in OpenModelica for OMCompiler/Compiler/FrontEnd/Inst.mo


Ignore:
Timestamp:
2020-02-04T17:09:45+01:00 (4 years ago)
Author:
GitHub <noreply@…>
Branches:
Added-citation-metadata, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
8862d56, 92420d0
Parents:
6c78ddb
git-author:
Mahder Gebremedhin <mahge@…> (02/04/20 17:09:45)
git-committer:
GitHub <noreply@…> (02/04/20 17:09:45)
Message:

Improve record constructor creation. (#717)

  • Make sure we do not remove bindings from derived record

declarations. This happens only for the old FrontEnd right now.

  • Improve processing a bit. Instead of checking twice in the list of already visited records, create the unique name for the constructor and then check only once.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/FrontEnd/Inst.mo

    r80ac1a4 rd84fc85e  
    10231023algorithm
    10241024  b := match inSubmod
     1025    case SCode.NAMEMOD(mod=SCode.REDECL()) then false;
    10251026    case SCode.NAMEMOD() then stringEqual(inSubmod.ident, inName);
    10261027  end match;
     
    37873788      DAE.Prefix pref;
    37883789
    3789       case (bind as DAE.EQBOUND(), pref as DAE.PREFIX(compPre=DAE.PRE())) algorithm
     3790      case (bind as DAE.EQBOUND(), pref as DAE.PREFIX(compPre=DAE.PRE())) algorithm
    37903791        bind.exp := PrefixUtil.removeCompPrefixFromExps(bind.exp, pref.compPre);
    37913792      then
Note: See TracChangeset for help on using the changeset viewer.