Skip to content

Commit

Permalink
- Changed Dump to print out 'constrainedby' instead of 'extends' for
Browse files Browse the repository at this point in the history
  constraining classes.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10779 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Dec 19, 2011
1 parent b42d921 commit a13dd0b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Compiler/FrontEnd/Dump.mo
Expand Up @@ -1715,11 +1715,18 @@ algorithm
Ident s1,s2,res;
Absyn.ElementSpec spec;
Option<Absyn.Comment> cmt;
case (Absyn.CONSTRAINCLASS(elementSpec = spec,comment = cmt))
Absyn.Path path;
list<Absyn.ElementArg> el;
String path_str, el_str, cmt_str;

case (Absyn.CONSTRAINCLASS(elementSpec =
Absyn.EXTENDS(path = path, elementArg = el), comment = cmt))
equation
s1 = unparseElementspecStr(0, spec, "", ("",""), "");
s2 = unparseCommentOption(cmt);
res = stringAppend(s1, s2);
path_str = Absyn.pathString(path);
cmt_str = unparseCommentOption(cmt);
el_str = getStringList(el, unparseElementArgStr, ", ");
el_str = Util.if_(Util.isEmptyString(el_str), el_str, "(" +& el_str +& ")");
res = stringAppendList({"constrainedby ", path_str, el_str, cmt_str});
then
res;
end match;
Expand Down

0 comments on commit a13dd0b

Please sign in to comment.