Ignore:
Timestamp:
2024-05-23T12:53:11+02:00 (4 weeks ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
8cc47a0c, f191ed8
Parents:
d5dbbd9b
git-author:
Per Östlund <per.ostlund@…> (05/23/24 12:53:11)
git-committer:
GitHub <noreply@…> (05/23/24 12:53:11)
Message:

Improve Base Modelica export (#12460)

  • Add version header.
  • Add experiment annotation.

Fixes #12457 and #12458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/NFFrontEnd/NFFunction.mo

    rd9f2966 rc8e35cd  
    881881      s := IOStream.append(s, ", ");
    882882      s := IOStream.append(s, stringDelimitList(getDerivedInputNames(fn), ", "));
    883       s := FlatModelicaUtil.appendComment(SCodeUtil.getElementComment(InstNode.definition(fn.node)), s);
     883      s := FlatModelicaUtil.appendComment(SCodeUtil.getElementComment(InstNode.definition(fn.node)),
     884        NFFlatModelicaUtil.ElementType.FUNCTION, s);
    884885      s := IOStream.append(s, ")");
    885886    else
     
    931932      if not SCodeUtil.emptyModOrEquality(annMod) then
    932933        cmt := SCode.COMMENT(SOME(SCode.ANNOTATION(annMod)), NONE());
    933         s := FlatModelicaUtil.appendCommentAnnotation(SOME(cmt), indent + "  ", ";\n", s);
     934        s := FlatModelicaUtil.appendCommentAnnotation(SOME(cmt),
     935          NFFlatModelicaUtil.ElementType.FUNCTION, indent + "  ", ";\n", s);
    934936      end if;
    935937
Note: See TracChangeset for help on using the changeset viewer.