Skip to content

Commit

Permalink
- Implemented handling of conditional component in SCodeInst.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11137 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Feb 14, 2012
1 parent 9006250 commit 19ea7b7
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 79 deletions.
16 changes: 16 additions & 0 deletions Compiler/FrontEnd/SCode.mo
Expand Up @@ -3795,5 +3795,21 @@ algorithm
end match;
end getModifierBinding;

public function removeComponentCondition
input Element inElement;
output Element outElement;
protected
Ident name;
Prefixes pf;
Attributes attr;
Absyn.TypeSpec ty;
Mod mod;
Option<Comment> cmt;
Absyn.Info info;
algorithm
COMPONENT(name, pf, attr, ty, mod, cmt, _, info) := inElement;
outElement := COMPONENT(name, pf, attr, ty, mod, cmt, NONE(), info);
end removeComponentCondition;

end SCode;

0 comments on commit 19ea7b7

Please sign in to comment.