Skip to content

Commit

Permalink
fixes pharo-project#4670. no #singal in the case for the #isDoit, as …
Browse files Browse the repository at this point in the history
…we really want to ingore it there
  • Loading branch information
MarcusDenker committed Sep 25, 2019
1 parent 2a43632 commit edb79d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kernel/Deprecation.class.st
Expand Up @@ -215,15 +215,15 @@ Deprecation >> signal [
{ #category : #handling }
Deprecation >> transform [
| node rewriteRule aMethod |
self shouldTransform ifFalse: [ ^ self ].
self shouldTransform ifFalse: [ ^ self signal].
self rewriterClass ifNil:[ ^ self signal ].
aMethod := self contextOfSender method.
aMethod isDoIt ifTrue:[^ self]. "no need to transform doits"
node := self contextOfSender sourceNodeExecuted.
rewriteRule := self rewriterClass new
replace: rule key with: rule value.
(rewriteRule executeTree: node)
ifFalse: [ ^ self ].
ifFalse: [ ^ self signal ].
node replaceWith: rewriteRule tree.
Author
useAuthor: 'AutoDeprecationRefactoring'
Expand Down

0 comments on commit edb79d1

Please sign in to comment.