Skip to content

Commit

Permalink
Fix for #2738:
Browse files Browse the repository at this point in the history
- Respect fully qualified crefs in Static.elabCrefSubs.
- Some random code cleaning in Expression.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21297 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 26, 2014
1 parent 98565f6 commit 1369dca
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 144 deletions.
22 changes: 11 additions & 11 deletions Compiler/FrontEnd/Env.mo
Expand Up @@ -1575,19 +1575,19 @@ public function topFrame "Returns the top frame."
input Env inEnv;
output Frame outFrame;
algorithm
outFrame := match (inEnv)
local
Frame fr,elt;
Env lst;
case ({fr}) then fr;
case ((_ :: (lst as (_ :: _))))
equation
fr = topFrame(lst);
then
fr;
end match;
outFrame :: _ := listReverse(inEnv);
end topFrame;

public function topEnv
input Env inEnv;
output Env outEnv;
protected
Frame top_frame;
algorithm
top_frame := topFrame(inEnv);
outEnv := {top_frame};
end topEnv;

public function getItemInEnv
"@author: adrpo
returns the item found in the first frame in env or fails"
Expand Down

0 comments on commit 1369dca

Please sign in to comment.