Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bf5664
commit 640b434
Showing
5 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
openmodelica/diff/Ticket3619.mos → openmodelica/diff/ticket3619.mos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// status: correct | ||
// Fixes the illegal multiple annotations and merges them into one | ||
// Does not manage to keep formatting in a good way | ||
|
||
diffModelicaFileListings( | ||
"block Microcontroller\nannotation(defaultComponentName = \"mcu\",\nmissingInnerMessage = \"Missing inner block for AVR microcontroller (this\ncannot have default values since the microcontrollers are all\ndifferent).\");\n annotation(Icon(graphics = {Text(origin = {32, -3},\nlineColor = {255, 255, 255}, extent = {{-44, 19}, {-20, -13}}, textString\n= \"AVR\", fontSize = 70, fontName = \"Arial\", textStyle =\n{TextStyle.Bold})}, coordinateSystem(initialScale = 0.1)));\nend\nMicrocontroller;", | ||
|
||
"block Microcontroller\n annotation(Icon(graphics = {Text(origin = {32, 9}, lineColor = {255, 255, 255}, extent = {{-44, 19}, {-20, -13}}, textString = \"AVR\", fontSize = 70, fontName = \"Arial\", textStyle = {TextStyle.Bold})}, coordinateSystem(initialScale = 0.1)), defaultComponentName = \"mcu\", missingInnerMessage = \"Missing inner block for AVR microcontroller (this\ncannot have default values since the microcontrollers are all\ndifferent).\");\nend Microcontroller;", | ||
OpenModelica.Scripting.DiffFormat.plain); | ||
getErrorString(); | ||
|
||
// Result: | ||
// "block Microcontroller | ||
// | ||
// annotation(Icon(graphics = {Text(origin = {32, 9}, lineColor = {255, 255, 255}, extent = {{-44, 19}, {-20, -13}}, textString = \"AVR\", fontSize = 70, fontName = \"Arial\", textStyle = {TextStyle.Bold})}, coordinateSystem(initialScale = 0.1)), defaultComponentName = \"mcu\", missingInnerMessage = \"Missing inner block for AVR microcontroller (this | ||
// cannot have default values since the microcontrollers are all | ||
// different).\"); | ||
// end | ||
// Microcontroller;" | ||
// "" | ||
// endResult |