Skip to content

Commit e8f54c9

Browse files
authored
Merge pull request #910 from jecisc/deprecate-detect-ifOne
Deprecated #detect:ifOne:
2 parents d8bdd57 + cc7e4e9 commit e8f54c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Extension { #name : #MooseAbstractGroup }
2+
3+
{ #category : #'*Famix-Deprecated' }
4+
MooseAbstractGroup >> detect: aBlock ifOne: anotherBlock [
5+
6+
self deprecated: 'Use #detect:ifFound: instead.' transformWith: '`@rcv detect: `@arg1 ifOne: `@arg2' -> '`@rcv detect: `@arg1 ifFound: `@arg2'.
7+
^ self
8+
detect: aBlock
9+
ifFound: anotherBlock
10+
]

0 commit comments

Comments
 (0)