Skip to content

Commit

Permalink
add RSUB dump to ExpressionDump
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2770
  • Loading branch information
Willi authored and OpenModelica-Hudson committed Nov 7, 2018
1 parent 0e4d8ee commit 023c904
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Compiler/FrontEnd/ExpressionDump.mo
Expand Up @@ -1475,6 +1475,18 @@ algorithm
then
res_str;

case (DAE.RSUB(exp=e, ix=i, fieldName=fs, ty=tp),level)
equation
gen_str = genStringNTime(" |", level);
new_level1 = level + 1;
ct = dumpExpStr(e, new_level1);
istr = intString(i);
s = stringAppendList({"[",istr,"]"});
tpStr = Types.unparseType(tp);
res_str = stringAppendList({gen_str,"RSUB ",s," fieldName: ",fs," tp: ",tpStr,"\n",ct,""});
then
res_str;

case (DAE.BOX(exp=e),level)
equation
gen_str = genStringNTime(" |", level);
Expand Down

0 comments on commit 023c904

Please sign in to comment.