Skip to content

Commit

Permalink
Fixes for bug: #1446
Browse files Browse the repository at this point in the history
- fixes bug: https://openmodelica.org:8443/cb/issue/1446
- get the info annotation from external declaration in a function!
- added testsuite/interactive/showDoc.mos to test this.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8148 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 9, 2011
1 parent a523ca6 commit 3ce1453
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Compiler/Script/Interactive.mo
Expand Up @@ -12765,6 +12765,7 @@ algorithm
list<Absyn.ClassPart> rest;
list<Absyn.EquationItem> eqItems;
list<Absyn.AlgorithmItem> alItems;
list<Absyn.ElementArg> elArgs;

case ({},_,_) then "";

Expand Down Expand Up @@ -12821,6 +12822,15 @@ algorithm
false = stringEqual(str, "");
then
str;

// search in exernal declarations
case (Absyn.EXTERNAL(annotation_ = SOME(Absyn.ANNOTATION(elArgs)))::rest, id, f)
equation
str = getNamedAnnotationStr(elArgs,id,f);
// make it sure is not empty!
false = stringEqual(str, "");
then
str;

// try next
case (_ :: rest,id,f)
Expand Down

0 comments on commit 3ce1453

Please sign in to comment.