Skip to content

Commit 79e9472

Browse files
author
Peter Aronsson
committed
Fixed bug in getNthComponentModification, not wrapping modifier in Code operator
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1057 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9211d68 commit 79e9472

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modeq/interactive.rml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,11 +2461,12 @@ relation get_componentitems_modification: Absyn.ComponentItem list => string =
24612461

24622462
rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => s1 &
24632463
get_componentitems_modification(rest) => s2 &
2464-
Util.string_append_list([s1,",",s2]) => res
2464+
Util.string_append_list(["Code(",s1,"),",s2]) => res
24652465
-------------------------------------------
24662466
get_componentitems_modification (Absyn.COMPONENTITEM(Absyn.COMPONENT(_,_,SOME(mod)),_)::(rest as (_::_))) => res
24672467

2468-
rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => res
2468+
rule Dump.print_exp_str Absyn.CODE(Absyn.C_MODIFICATION(mod)) => s1 &
2469+
Util.string_append_list(["Code(",s1,")"]) => res
24692470
-------------------------------------------------------------
24702471
get_componentitems_modification ([Absyn.COMPONENTITEM(Absyn.COMPONENT(_,_,SOME(mod)),_)]) => res
24712472

0 commit comments

Comments
 (0)