Tools__MethodRewriter.st
changeset 10153 c8677bcfda56
parent 10140 2df2dde55877
child 10170 3239c0b672eb
equal deleted inserted replaced
10152:561883853228 10153:c8677bcfda56
    93 
    93 
    94 templateReplaceIfNilByIsNilIfTrue
    94 templateReplaceIfNilByIsNilIfTrue
    95 
    95 
    96     ^Array 
    96     ^Array 
    97         with:('Replace ','ifNil:' allBold,' by ','isNil ifTrue:' allBold)
    97         with:('Replace ','ifNil:' allBold,' by ','isNil ifTrue:' allBold)
    98         with: '@receiver ifNil: @block'
    98         with: '``@receiver ifNil: ``@block'
    99         with: '@receiver isNil ifTrue: @block'''
    99         with: '``@receiver isNil ifTrue: ``@block'
   100 
   100 
   101     "Created: / 04-07-2011 / 19:25:06 / cg"
   101     "Created: / 04-07-2011 / 19:25:06 / cg"
   102 !
   102 !
   103 
   103 
   104 templateReplaceIsNilOrEmptyCollectionByIsEmptyOrNil
   104 templateReplaceIsNilOrEmptyCollectionByIsEmptyOrNil
   105 
   105 
   106     ^Array 
   106     ^Array 
   107         with:('Replace ','isNilOrEmptyCollection' allBold,' by ','isEmptyOrNil' allBold)
   107         with:('Replace ','isNilOrEmptyCollection' allBold,' by ','isEmptyOrNil' allBold)
   108         with: '@receiver isNilOrEmptyCollection'
   108         with: '``@receiver isNilOrEmptyCollection'
   109         with: '@receiver isEmptyOrNil'''
   109         with: '``@receiver isEmptyOrNil'''
   110 
   110 
   111     "Created: / 03-07-2011 / 21:59:47 / cg"
   111     "Created: / 03-07-2011 / 21:59:47 / cg"
   112 !
   112 !
   113 
   113 
   114 templateReplaceSelfHaltBySelfBreakPoint
   114 templateReplaceSelfHaltBySelfBreakPoint
  1044 ! !
  1044 ! !
  1045 
  1045 
  1046 !MethodRewriter class methodsFor:'documentation'!
  1046 !MethodRewriter class methodsFor:'documentation'!
  1047 
  1047 
  1048 version_CVS
  1048 version_CVS
  1049     ^ '$Header: /cvs/stx/stx/libtool/Tools__MethodRewriter.st,v 1.11 2011-07-04 17:26:23 cg Exp $'
  1049     ^ '$Header: /cvs/stx/stx/libtool/Tools__MethodRewriter.st,v 1.12 2011-07-05 09:31:51 cg Exp $'
  1050 !
  1050 !
  1051 
  1051 
  1052 version_SVN
  1052 version_SVN
  1053     ^ '§Id: Tools__MethodRewriter.st 7486 2009-10-26 22:06:24Z vranyj1 §'
  1053     ^ '§Id: Tools__MethodRewriter.st 7486 2009-10-26 22:06:24Z vranyj1 §'
  1054 ! !
  1054 ! !