Skip to content

Commit

Permalink
- properly display alias variables in XMLDump
Browse files Browse the repository at this point in the history
  alias="" if there is no alias
  alias="cref" for alias
  alias="-cref" for negated alias

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17716 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Oct 16, 2013
1 parent a4aa7c0 commit c3c8d6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/Template/CodegenXML.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ template getAliasVarXml(AliasVariable aliasvar)
"Returns the alias Attribute of ScalarVariable."
::=
match aliasvar
case NOALIAS(__) then "noAlias"
case ALIAS(__) then "alias"
case NEGATEDALIAS(__) then "negatedAlias"
else "noAlias"
case NOALIAS(__) then ""
case ALIAS(__) then '<%crefStrXml(varName)%>'
case NEGATEDALIAS(__) then '-<%crefStrXml(varName)%>'
else ""
end getAliasVarXml;

template variableCategoryXml(VarKind varKind)
Expand Down

0 comments on commit c3c8d6f

Please sign in to comment.