forked from pharo-project/pharo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The API of Protocol is, currently, misleading. A protocol has a metho…
…d #methods but this one does not return methods but selectors. In this PR I updated the API to #methodSelectors to be explicit.
- Loading branch information
Showing
8 changed files
with
79 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Extension { #name : #Protocol } | ||
|
||
{ #category : #'*Deprecated80' } | ||
Protocol >> addMethod: aSymbol [ | ||
self deprecated: 'Use #addMethodSelector: instead' transformWith: '`@receiver addMethod: `@arg' -> '`@receiver addMethodSelector: `@arg'. | ||
^ self addMethodSelector: aSymbol | ||
] | ||
|
||
{ #category : #'*Deprecated80' } | ||
Protocol >> methods [ | ||
self deprecated: 'Use #methodSelectors instead.' transformWith: '`@receiver methods' -> '`@receiver methodSelectors'. | ||
^ self methodSelectors | ||
] | ||
|
||
{ #category : #'*Deprecated80' } | ||
Protocol >> methods: aCollection [ | ||
self deprecated: 'Use #methodSelectors: instead.' transformWith: '`@receiver methods: `@arg' -> '`@receiver methodSelectors: `@arg'. | ||
^ self methodSelectors: aCollection | ||
] | ||
|
||
{ #category : #'*Deprecated80' } | ||
Protocol >> removeAllMethods [ | ||
self deprecated: 'Use #removeAllMethodSelectors instead' transformWith: '`@receiver removeAllMethods' -> '`@receiver removeAllMethodSelectors'. | ||
^ self removeAllMethodSelectors | ||
] | ||
|
||
{ #category : #'*Deprecated80' } | ||
Protocol >> removeMethod: aSymbol [ | ||
self deprecated: 'Use #removeMethodSelector: instead' transformWith: '`@receiver removeMethod: `@arg' -> '`@receiver removeMethodSelector: `@arg'. | ||
^ self removeMethodSelector: aSymbol | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #ProtocolOrganizer } | ||
|
||
{ #category : #'*Deprecated80' } | ||
ProtocolOrganizer >> allMethods [ | ||
self deprecated: 'Use #allMethodSelectors instead' transformWith: '`@receiver allMethods' -> '`@receiver allMethodSelectors'. | ||
^ self allMethodSelectors | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters