Skip to content

Commit

Permalink
- Allow inheritance of function parameters in SCodeInst.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13164 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Oct 3, 2012
1 parent bc2879e commit c2a13db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Compiler/FrontEnd/SCodeInst.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@ algorithm
Absyn.Info info;
Element el;
list<Element> rest_el;
list<Element> inputs, outputs, locals;
list<Element> inputs, outputs, locals, els;

case ({}, _, _, _) then (inAccumInputs, inAccumOutputs, inAccumLocals);

Expand All @@ -2368,9 +2368,10 @@ algorithm
then
(inputs, outputs, locals);

// ignore EXTENDS -> TODO FIXME should we ignore them??
case ((el as InstTypes.EXTENDED_ELEMENTS(baseClass = _)) :: rest_el, inputs, outputs, locals)
case (InstTypes.EXTENDED_ELEMENTS(cls = InstTypes.COMPLEX_CLASS(
components = els)) :: rest_el, inputs, outputs, locals)
equation
(inputs, outputs, locals) = getFunctionParameters2(els, inputs, outputs, locals);
(inputs, outputs, locals) = getFunctionParameters2(rest_el, inputs, outputs, locals);
then
(inputs, outputs, locals);
Expand Down

0 comments on commit c2a13db

Please sign in to comment.