Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit ff1e618

Browse files
perostOpenModelica-Hudson
authored andcommitted
Fix for ticket:4625.
- Implement case for Absyn.Exp.CALL in Interactive.renameComponentInExp. Belonging to [master]: - #2007
1 parent a72f165 commit ff1e618

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Compiler/Script/Interactive.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,12 +2474,12 @@ protected function renameComponentInExp
24742474
"author: x02lucpo
24752475
helper function to renameComponentVisitor"
24762476
input Absyn.Exp inExp1;
2477-
input Absyn.ComponentRef inComponentRef2;
2478-
input Absyn.ComponentRef inComponentRef3;
2477+
input Absyn.ComponentRef oldPrefix;
2478+
input Absyn.ComponentRef newPrefix;
24792479
output Absyn.Exp outExp;
24802480
algorithm
24812481
outExp:=
2482-
matchcontinue (inExp1,inComponentRef2,inComponentRef3)
2482+
matchcontinue (inExp1, oldPrefix, newPrefix)
24832483
local
24842484
Integer i;
24852485
Real r;
@@ -2538,10 +2538,10 @@ algorithm
25382538
exp_tuple_list_1 = renameComponentInExpTupleList(exp_tuple_list, old_comp, new_comp);
25392539
then
25402540
Absyn.IFEXP(exp1_1,exp2_1,exp3_1,exp_tuple_list_1);
2541-
case (Absyn.CALL(function_ = cref,functionArgs = func_args),_,_)
2541+
case (Absyn.CALL(function_ = cref,functionArgs = func_args), old_comp, new_comp)
25422542
equation
2543-
print(
2544-
"-rename_component_in_exp for Absyn.CALL not implemented yet\n");
2543+
cref = replaceStartInComponentRef(cref, old_comp, new_comp);
2544+
func_args = renameComponentInFunctionArgs(func_args, old_comp, new_comp);
25452545
then
25462546
Absyn.CALL(cref,func_args);
25472547
case (Absyn.ARRAY(arrayExp = exp_list),old_comp,new_comp)

0 commit comments

Comments
 (0)