Skip to content

Commit

Permalink
Moved function from AbsynToSCode that belong to Inst
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Aug 16, 2019
1 parent 4d7ee8a commit c59e7a8
Show file tree
Hide file tree
Showing 9 changed files with 522 additions and 814 deletions.
3 changes: 2 additions & 1 deletion OMCompiler/Compiler/FFrontEnd/FGraphBuild.mo
Expand Up @@ -70,6 +70,7 @@ import List;
import AbsynToSCode;
import SCodeDump;
import SCodeUtil;
import SCodeInstUtil;
import Util;
import FMod;

Expand Down Expand Up @@ -130,7 +131,7 @@ algorithm

case (_, _, _, g)
equation
cls = AbsynToSCode.expandEnumerationClass(inClass);
cls = SCodeInstUtil.expandEnumerationClass(inClass);
SCode.CLASS(name = name, classDef = cdef) = cls;
(g, n) = FGraph.node(g, name, {inParentRef}, FCore.CL(cls, Prefix.NOPRE(), DAE.NOMOD(), inKind, FCore.VAR_UNTYPED()));
nr = FNode.toRef(n);
Expand Down
3 changes: 2 additions & 1 deletion OMCompiler/Compiler/FFrontEnd/FGraphBuildEnv.mo
Expand Up @@ -72,6 +72,7 @@ protected
import List;
import AbsynToSCode;
import SCodeDump;
import SCodeInstUtil;
import SCodeUtil;
import Util;

Expand Down Expand Up @@ -139,7 +140,7 @@ algorithm

case (_, _, _, _, _, g)
equation
cls = AbsynToSCode.expandEnumerationClass(inClass);
cls = SCodeInstUtil.expandEnumerationClass(inClass);
SCode.CLASS(name = name) = cls;
(g, n) = FGraph.node(g, name, {inParentRef}, FCore.CL(cls, inPrefix, inMod, inKind, FCore.CLS_UNTYPED()));
nr = FNode.toRef(n);
Expand Down

0 comments on commit c59e7a8

Please sign in to comment.