Tools__MethodRewriter.st
changeset 10140 2df2dde55877
parent 10128 4bd98e161a68
child 10153 c8677bcfda56
--- a/Tools__MethodRewriter.st	Mon Jul 04 19:22:43 2011 +0200
+++ b/Tools__MethodRewriter.st	Mon Jul 04 19:26:23 2011 +0200
@@ -91,6 +91,16 @@
     "Modified: / 04-07-2011 / 17:41:21 / cg"
 !
 
+templateReplaceIfNilByIsNilIfTrue
+
+    ^Array 
+        with:('Replace ','ifNil:' allBold,' by ','isNil ifTrue:' allBold)
+        with: '@receiver ifNil: @block'
+        with: '@receiver isNil ifTrue: @block'''
+
+    "Created: / 04-07-2011 / 19:25:06 / cg"
+!
+
 templateReplaceIsNilOrEmptyCollectionByIsEmptyOrNil
 
     ^Array 
@@ -1036,7 +1046,7 @@
 !MethodRewriter class methodsFor:'documentation'!
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/Tools__MethodRewriter.st,v 1.10 2011-07-04 16:00:17 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/Tools__MethodRewriter.st,v 1.11 2011-07-04 17:26:23 cg Exp $'
 !
 
 version_SVN