Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20833 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed May 26, 2014
1 parent c8e2d2f commit ffd0ca1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Compiler/FrontEnd/DAEUtil.mo
Expand Up @@ -707,7 +707,7 @@ algorithm
oExps := match(inVariableAttributesOption)
local
Option<DAE.Exp> e1,e2;

case(SOME(DAE.VAR_ATTR_ENUMERATION(min = e1, max = e2))) then {e1, e2};
case(SOME(DAE.VAR_ATTR_INT(min = e1, max = e2))) then {e1, e2};
case(SOME(DAE.VAR_ATTR_REAL(min = e1, max = e2))) then {e1, e2};
Expand All @@ -720,7 +720,7 @@ public function getMinMaxValues
input Option<DAE.VariableAttributes> inVariableAttributesOption;
output Option<DAE.Exp> outMinValue;
output Option<DAE.Exp> outMaxValue;
algorithm
algorithm
(outMinValue, outMaxValue) := match(inVariableAttributesOption)
local
Option<DAE.Exp> minValue, maxValue;
Expand Down Expand Up @@ -833,7 +833,7 @@ public function getMinAttrFail "
input Option<DAE.VariableAttributes> inVariableAttributesOption;
output DAE.Exp outMin;
algorithm
SOME(DAE.VAR_ATTR_REAL(min = SOME(outMin))) := inVariableAttributesOption;
SOME(DAE.VAR_ATTR_REAL(min = SOME(outMin))) := inVariableAttributesOption;
end getMinAttrFail;

public function getMaxAttrFail "
Expand Down
16 changes: 8 additions & 8 deletions Compiler/Template/DAEDumpTpl.tpl
Expand Up @@ -159,7 +159,7 @@ match attr
case DAE.ATTR(variability = SCode.CONST()) then 'constant '
else 'input '
end dumpRecordConstructorInputAttr;

template dumpRecordConstructorBinding(DAE.Binding binding)
::=
match binding
Expand Down Expand Up @@ -211,7 +211,7 @@ end dumpInlineType;
* SECTION: VARIABLE SECTION *
*****************************************************************************/
template dumpVars(list<DAE.Element> v)
::= (v |> var => dumpVar(var,false) ;separator="\n")
::= (v |> var => dumpVar(var,false) ;separator="\n")
end dumpVars;

template dumpVar(DAE.Element lst, Boolean printTypeDimension)
Expand Down Expand Up @@ -333,7 +333,7 @@ match ty
end dumpArrayType;

template dumpTupleType(list<Type> tys, String ty_begin, String ty_end)
::=
::=
let &attr = buffer ""
'<%ty_begin%><%(tys |> ty => dumpType(ty, &attr) ;separator=", ")%><%ty_end%>'
end dumpTupleType;
Expand All @@ -348,7 +348,7 @@ match ty
let res_str = dumpType(funcResultType, &attr)
'<%src_str%><function>(<%args_str%>) => <%res_str%>'
end dumpFunctionType;

template dumpFuncArg(FuncArg arg)
::=
match arg
Expand All @@ -367,7 +367,7 @@ match c
case C_PARAM() then "parameter "
case C_CONST() then "constant "
end dumpConst;

template dumpParallelism(DAE.VarParallelism p)
::=
match p
Expand Down Expand Up @@ -628,7 +628,7 @@ template dumpEquEquation(DAE.ComponentRef lhs, DAE.ComponentRef rhs, DAE.Element
<%lhs_str%> = <%rhs_str%><%src_str%>;
>>
end dumpEquEquation;

template dumpDefine(DAE.ComponentRef lhs, DAE.Exp rhs, DAE.ElementSource src)
::=
let lhs_str = dumpCref(lhs)
Expand Down Expand Up @@ -960,15 +960,15 @@ template dumpCompAnnotation(Option<SCode.Comment> comment)
let cmt_str = dumpCommentAnnotation(comment)
if cmt_str then ' <%cmt_str%>'
end dumpCompAnnotation;

template dumpCommentAnnotation(Option<SCode.Comment> comment)
::=
if Config.showAnnotations() then
match comment
case SOME(SCode.COMMENT(annotation_ = SOME(SCode.ANNOTATION(modification = ann_mod)))) then
'annotation<%SCodeDumpTpl.dumpModifier(ann_mod, SCodeDump.defaultOptions)%>'
end dumpCommentAnnotation;

template dumpCommentOpt(Option<SCode.Comment> comment)
::= match comment case SOME(cmt) then dumpComment(cmt)
end dumpCommentOpt;
Expand Down

0 comments on commit ffd0ca1

Please sign in to comment.