Skip to content

Commit

Permalink
- Changed unparsing of DAE.T_FUNCTION
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13427 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 17, 2012
1 parent 6383f79 commit c88d76d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Compiler/FrontEnd/Types.mo
Expand Up @@ -2495,14 +2495,23 @@ protected function unparseParam "function: unparseParam
algorithm
outString := match (inFuncArg)
local
Ident tstr,res,id,cstr;
Ident tstr,res,id,cstr,estr;
Type ty;
DAE.Const c;
case ((id,ty,c,_))
DAE.Exp exp;
case ((id,ty,c,NONE()))
equation
tstr = unparseType(ty);
cstr = DAEUtil.constStrFriendly(c);
res = stringAppendList({tstr," ",cstr,id});
then
res;
case ((id,ty,c,SOME(exp)))
equation
tstr = unparseType(ty);
cstr = DAEUtil.constStrFriendly(c);
res = stringAppendList({cstr,id,":",tstr});
estr = ExpressionDump.printExpStr(exp);
res = stringAppendList({tstr," ",cstr,id," := ",estr});
then
res;
end match;
Expand Down

0 comments on commit c88d76d

Please sign in to comment.