Skip to content

Commit

Permalink
- traverseExpTopDown: Handle DAE.PATTERN
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9609 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 8, 2011
1 parent 33fb64c commit 05abc5e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Compiler/FrontEnd/Expression.mo
Expand Up @@ -4021,6 +4021,9 @@ algorithm
then
((DAE.BOX(e1_1),ext_arg_1));

case (e as DAE.PATTERN(pattern=_),rel,ext_arg)
then ((e,ext_arg));

case (e,rel,ext_arg)
equation
str = ExpressionDump.printExpStr(e);
Expand Down Expand Up @@ -4113,9 +4116,8 @@ public function traverseExpListTopDown
algorithm
outTpl := match(expl,rel,ext_arg)
local DAE.Exp e,e1; list<DAE.Exp> expl1;
case({},_,ext_arg)
then (({},ext_arg));
case(e::expl,rel,ext_arg)
case ({},_,ext_arg) then (({},ext_arg));
case (e::expl,rel,ext_arg)
equation
((e1,ext_arg)) = traverseExpTopDown(e, rel, ext_arg);
((expl1,ext_arg)) = traverseExpListTopDown(expl,rel,ext_arg);
Expand Down

0 comments on commit 05abc5e

Please sign in to comment.