Skip to content

Commit

Permalink
- Some cleanup of SCode.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20170 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 16, 2014
1 parent 876732a commit 63b588b
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 301 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -1718,7 +1718,7 @@ algorithm
SCode.Annotation anno;
// Parameter with evaluate=true
case BackendDAE.VAR(comment=SOME(SCode.COMMENT(annotation_=SOME(anno))))
then SCode.hasBooleanNamedAnnotation({anno},"Evaluate");
then SCode.hasBooleanNamedAnnotation(anno,"Evaluate");
else then false;
end match;
end hasVarEvaluateAnnotation;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/DAEUtil.mo
Expand Up @@ -3158,7 +3158,7 @@ algorithm
case ((ht,_),DAE.VAR(componentRef = cr,kind=DAE.PARAM(),binding=SOME(e),absynCommentOption=SOME(comment)),pv)
equation
SCode.COMMENT(annotation_=SOME(anno)) = comment;
true = SCode.hasBooleanNamedAnnotation({anno},"Evaluate");
true = SCode.hasBooleanNamedAnnotation(anno,"Evaluate");
e1 = evaluateParameter(e,pv);
ht1 = BaseHashTable.add((cr,e1),ht);
then
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Inline.mo
Expand Up @@ -1556,7 +1556,7 @@ algorithm
list<SCode.Annotation> annos;
case (SOME(SCode.COMMENT(annotation_=SOME(anno))))
then
SCode.hasBooleanNamedAnnotation({anno},"GenerateEvents");
SCode.hasBooleanNamedAnnotation(anno,"GenerateEvents");
else then false;
end match;
end hasGenerateEventsAnnotation;
Expand Down

0 comments on commit 63b588b

Please sign in to comment.