Skip to content

Commit

Permalink
- empty annotation should be like annotation();
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13130 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 2, 2012
1 parent e2f0cac commit 6a9214e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/Template/SCodeDumpTpl.tpl
Expand Up @@ -749,7 +749,10 @@ template dumpAnnotation(SCode.Annotation annotation)
::=
if Config.showAnnotations() then
match annotation
case ANNOTATION(__) then ' annotation<%dumpModifier(modification)%>'
case ANNOTATION(__) then
let modifStr = '<%dumpModifier(modification)%>'
let annStr = if modifStr then modifStr else '()'
' annotation<%annStr%>'
end dumpAnnotation;

template dumpAnnotationElement(SCode.Annotation annotation)
Expand Down

0 comments on commit 6a9214e

Please sign in to comment.