This repository was archived by the owner on May 18, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -4492,35 +4492,32 @@ protected function getElementWithId
44924492 input String inId;
44934493 output Element outElement;
44944494algorithm
4495- outElement := matchcontinue (inProgram, inId)
4495+ outElement := match (inProgram, inId)
44964496 local
44974497 Program sp, rest;
44984498 Element c, e;
44994499 Absyn . Path p;
45004500 Absyn . Ident i, n;
45014501
45024502 case ((e as CLASS (name = n))::_, i)
4503- equation
4504- true = stringEq(n, i);
4503+ guard stringEq(n, i)
45054504 then
45064505 e;
45074506
45084507 case ((e as COMPONENT (name = n))::_, i)
4509- equation
4510- true = stringEq(n, i);
4508+ guard stringEq(n, i)
45114509 then
45124510 e;
45134511
45144512 case ((e as EXTENDS (baseClassPath = p))::_, i)
4515- equation
4516- true = stringEq(Absyn . pathString(p), i);
4513+ guard stringEq(Absyn . pathString(p), i)
45174514 then
45184515 e;
45194516
45204517 case (_::rest, i)
45214518 then getElementWithId(rest, i);
45224519
4523- end matchcontinue ;
4520+ end match ;
45244521end getElementWithId;
45254522
45264523public function getElementWithPath
Original file line number Diff line number Diff line change @@ -7243,7 +7243,7 @@ function getClassComment "Returns the class comment of a Absyn.ClassDef"
72437243 output String outString;
72447244algorithm
72457245 outString:=
7246- matchcontinue (inClassDef)
7246+ match (inClassDef)
72477247 local
72487248 String str,res;
72497249 Option < Absyn . Comment > cmt;
@@ -7258,7 +7258,7 @@ algorithm
72587258 then Interactive . getStringComment(cmt);
72597259 case (Absyn . CLASS_EXTENDS (comment = SOME (str))) then str;
72607260 else "" ;
7261- end matchcontinue ;
7261+ end match ;
72627262end getClassComment;
72637263
72647264protected function getAnnotationInEquation
You can’t perform that action at this time.
0 commit comments