.OpenModelica.Scripting.moveClass

Moves a class up or down in a package.

Information

Moves a class up or down depending on the given offset, where a positive offset moves the class down and a negative offset up. The offset is truncated if the resulting index is outside the class list.

It retains the visibility of the class by adding public/protected sections when needed, and merges sections of the same type if the class is moved from a section it was alone in.

Returns true if the move was successful, otherwise false.

Interface

function moveClass
  input TypeName className "the class that should be moved";
  input Integer offset "Offset in the class list.";
  output Boolean result;
end moveClass;

Generated at 2025-04-18T18:20:08Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos