Skip to content

Commit

Permalink
- Bump MSL version
Browse files Browse the repository at this point in the history
- Handle "import .A.B.C;" => "import A.B.C;" in Absyn->SCode


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14666 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 4, 2013
1 parent b1b36cf commit a76bdc8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Compiler/FrontEnd/SCodeUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1479,9 +1479,19 @@ protected function translateImports "Used to handle group imports, i.e. A.B.C.{x
algorithm
elts := match (imp,visibility,info)
local
Absyn.Import imp2;
String name;
Absyn.Path p;
list<Absyn.GroupImport> groups;

/* Maybe these should give warnings? I don't know. See https://trac.modelica.org/Modelica/ticket/955 */
case (Absyn.NAMED_IMPORT(name,Absyn.FULLYQUALIFIED(p)),_,_)
then translateImports(Absyn.NAMED_IMPORT(name,p),visibility,info);
case (Absyn.QUAL_IMPORT(Absyn.FULLYQUALIFIED(p)),_,_)
then translateImports(Absyn.QUAL_IMPORT(p),visibility,info);
case (Absyn.UNQUAL_IMPORT(Absyn.FULLYQUALIFIED(p)),_,_)
then translateImports(Absyn.UNQUAL_IMPORT(p),visibility,info);

case (Absyn.GROUP_IMPORT(prefix=p,groups=groups),_,_)
then List.map3(groups, translateGroupImport, p, visibility, info);
else {SCode.IMPORT(imp, visibility, info)};
Expand Down

0 comments on commit a76bdc8

Please sign in to comment.