@@ -166,7 +166,8 @@ void read(XmlPullParser parser, boolean overwriteConflicts, boolean ignoreStackF
166
166
167
167
String regularComment = getElementText (parser , "REGULAR_CMT" );
168
168
func .setComment (regularComment );
169
- getElementText (parser , "REPEATABLE_CMT" );
169
+ String repeatableComment = getElementText (parser , "REPEATABLE_CMT" );
170
+ func .setRepeatableComment (repeatableComment );
170
171
String typeInfoComment = getElementText (parser , "TYPEINFO_CMT" );
171
172
List <Variable > stackParams = new ArrayList <>();
172
173
List <Variable > stackVariables = new ArrayList <>();
@@ -533,6 +534,7 @@ private void writeFunction(XmlWriter writer, Function func) {
533
534
writeReturnType (writer , func );
534
535
writeAddressRange (writer , func );
535
536
writeRegularComment (writer , func .getComment ());
537
+ writeRepeatableComment (writer , func .getRepeatableComment ());
536
538
if (func .getSignatureSource () != SourceType .DEFAULT ) {
537
539
writeTypeInfoComment (writer , func );
538
540
}
@@ -602,6 +604,12 @@ private void writeRegularComment(XmlWriter writer, String comment) {
602
604
}
603
605
}
604
606
607
+ private void writeRepeatableComment (XmlWriter writer , String comment ) {
608
+ if (comment != null && comment .length () > 0 ) {
609
+ writer .writeElement ("REPEATABLE_CMT" , null , comment );
610
+ }
611
+ }
612
+
605
613
private void writeStackFrame (XmlWriter writer , Function func ) {
606
614
StackFrame frame = func .getStackFrame ();
607
615
0 commit comments