#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Thu, 08 Mar 2018 00:48:19 +0100
changeset 1040 8c397b8defca
parent 1039 88f5b1106042
child 1041 4e3b40303d42
#BUGFIX by cg class: MCDefinition added: #addChangesTo: don't loose comment changes
MCDefinition.st
--- a/MCDefinition.st	Thu Mar 08 00:48:11 2018 +0100
+++ b/MCDefinition.st	Thu Mar 08 00:48:19 2018 +0100
@@ -118,6 +118,15 @@
 
 !MCDefinition methodsFor:'converting'!
 
+addChangesTo:aChangeSet
+    "some MCDefinitions will result in multiple changes
+     (i.e. ClassDefinitionChange might also generate a comment change).
+     The default here is to add the one major change (which was also generated in the past).
+     Warning: callers of asChange should change their mind and use this."
+
+    aChangeSet add:self asChange
+!
+
 asChange
     "raise an error: must be redefined in concrete subclass(es)"