Skip to content

Commit d44c008

Browse files
committed
- Some fixes for compiling SCodeFlatten using bootstrapped OMC
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7833 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 5579ef7 commit d44c008

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Compiler/FrontEnd/Patternm.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ protected function elabPattern2
171171
output Env.Cache outCache;
172172
output DAE.Pattern pattern;
173173
algorithm
174-
(outCache,pattern) := match (cache,env,lhs,ty,info)
174+
(outCache,pattern) := matchcontinue (cache,env,lhs,ty,info)
175175
local
176176
list<Absyn.Exp> exps;
177177
list<DAE.Type> tys;
@@ -291,7 +291,7 @@ algorithm
291291
str = Dump.printExpStr(lhs) +& " of type " +& Types.unparseType(ty);
292292
Error.addSourceMessage(Error.META_INVALID_PATTERN, {str}, info);
293293
then fail();
294-
end match;
294+
end matchcontinue;
295295
end elabPattern2;
296296

297297
protected function elabPatternTuple

Compiler/FrontEnd/SCodeEnv.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ algorithm
12231223
Absyn.Path path;
12241224
Env rest;
12251225

1226-
case (FRAME(frameType = IMPLICIT_SCOPE) :: rest)
1226+
case (FRAME(frameType = IMPLICIT_SCOPE()) :: rest)
12271227
then getEnvPath(rest);
12281228

12291229
case ({FRAME(name = SOME(name))})
@@ -1361,9 +1361,9 @@ protected function printFrameTypeStr
13611361
output String outString;
13621362
algorithm
13631363
outString := match(inFrame)
1364-
case NORMAL_SCOPE then "Normal";
1365-
case ENCAPSULATED_SCOPE then "Encapsulated";
1366-
case IMPLICIT_SCOPE then "Implicit";
1364+
case NORMAL_SCOPE() then "Normal";
1365+
case ENCAPSULATED_SCOPE() then "Encapsulated";
1366+
case IMPLICIT_SCOPE() then "Implicit";
13671367
end match;
13681368
end printFrameTypeStr;
13691369

Compiler/FrontEnd/SCodeFlattenImports.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ protected function checkNotExtendsDependent
382382
input Absyn.Info inInfo;
383383
output Boolean outResult;
384384
algorithm
385-
_ := matchcontinue(inBaseClass, inEnv, inInfo)
385+
outResult := matchcontinue(inBaseClass, inEnv, inInfo)
386386
local
387387
Absyn.Path bc;
388388
Absyn.Ident id;

0 commit comments

Comments
 (0)