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

Commit

Permalink
Fix StateSelect variability in nfinst.
Browse files Browse the repository at this point in the history
  • Loading branch information
perost authored and OpenModelica-Hudson committed Nov 6, 2017
1 parent 0f09961 commit 9e0eb5f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Compiler/NFFrontEnd/NFBuiltin.mo
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ constant InstNode STATESELECT_NEVER =
InstNode.EMPTY_NODE(),
STATESELECT_TYPE,
STATESELECT_NEVER_BINDING,
Component.Attributes.DEFAULT(),
NFComponent.CONSTANT_ATTR,
Absyn.dummyInfo)),
STATESELECT_NODE);

Expand All @@ -245,7 +245,7 @@ constant InstNode STATESELECT_AVOID =
InstNode.EMPTY_NODE(),
STATESELECT_TYPE,
STATESELECT_AVOID_BINDING,
Component.Attributes.DEFAULT(),
NFComponent.CONSTANT_ATTR,
Absyn.dummyInfo)),
STATESELECT_NODE);

Expand All @@ -258,7 +258,7 @@ constant InstNode STATESELECT_DEFAULT =
InstNode.EMPTY_NODE(),
STATESELECT_TYPE,
STATESELECT_DEFAULT_BINDING,
Component.Attributes.DEFAULT(),
NFComponent.CONSTANT_ATTR,
Absyn.dummyInfo)),
STATESELECT_NODE);

Expand All @@ -271,7 +271,7 @@ constant InstNode STATESELECT_PREFER =
InstNode.EMPTY_NODE(),
STATESELECT_TYPE,
STATESELECT_PREFER_BINDING,
Component.Attributes.DEFAULT(),
NFComponent.CONSTANT_ATTR,
Absyn.dummyInfo)),
STATESELECT_NODE);

Expand All @@ -284,7 +284,7 @@ constant InstNode STATESELECT_ALWAYS =
InstNode.EMPTY_NODE(),
STATESELECT_TYPE,
STATESELECT_ALWAYS_BINDING,
Component.Attributes.DEFAULT(),
NFComponent.CONSTANT_ATTR,
Absyn.dummyInfo)),
STATESELECT_NODE);

Expand Down
10 changes: 10 additions & 0 deletions Compiler/NFFrontEnd/NFComponent.mo
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ constant Component.Attributes PROTECTED_ATTR =
Visibility.PROTECTED
);

constant Component.Attributes CONSTANT_ATTR =
Component.Attributes.ATTRIBUTES(
ConnectorType.POTENTIAL,
Parallelism.NON_PARALLEL,
Variability.CONSTANT,
Direction.NONE,
InnerOuter.NOT_INNER_OUTER,
Visibility.PUBLIC
);

uniontype Component
uniontype Attributes
record ATTRIBUTES
Expand Down

0 comments on commit 9e0eb5f

Please sign in to comment.