Skip to content

Commit

Permalink
Do not update protocols if they are extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Apr 2, 2020
1 parent 510bb93 commit 6cff927
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Chanel/Chanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Chanel >> clean [
{ #category : #protocols }
Chanel >> cleanCloseProtocols [
| methods |
methods := self localMethods.
methods := self localMethodsWithoutExtensions.
self protocolsToCleanMap keysAndValuesDo: [ :olds :new | methods do: [ :meth | (olds includes: meth protocol) ifTrue: [ meth protocol: new ] ] ]
]

Expand Down Expand Up @@ -201,7 +201,7 @@ Chanel >> cleanEqualityTest [
{ #category : #protocols }
Chanel >> cleanProtocols [
| methods protocolsMap |
methods := self localMethods.
methods := self localMethodsWithoutExtensions.

self cleanCloseProtocols.

Expand Down Expand Up @@ -299,6 +299,11 @@ Chanel >> localMethods [
^ (packages flatCollect: #methods) reject: #isFromTrait
]

{ #category : #accessing }
Chanel >> localMethodsWithoutExtensions [
^ self localMethods reject: #isExtension
]

{ #category : #accessing }
Chanel >> methodsInSpecificProtocolMap [
^ self class methodsInSpecificProtocolMap
Expand Down

0 comments on commit 6cff927

Please sign in to comment.