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.
#methodComments is a strang method... it returns all comments at the …
…level of the method, but including comments on arguments. There are no clients. It is not clear why this is needed as an API method.
- Loading branch information
1 parent
a2ba9b1
commit 4cc1c32
Showing
6 changed files
with
30 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #RBProgramNode } | ||
|
||
{ #category : #'*Deprecated90' } | ||
RBProgramNode >> methodComments [ | ||
self | ||
deprecated: 'Please use #comments instead' | ||
transformWith: '`@receiver methodComments' -> '`@receiver comments'. | ||
^self comments | ||
] |
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,12 @@ | ||
Extension { #name : #RBSequenceNode } | ||
|
||
{ #category : #'*Deprecated90' } | ||
RBSequenceNode >> methodComments [ | ||
| methodComments | | ||
self deprecated: 'no users, will be removed in Pharo10'. | ||
methodComments := OrderedCollection withAll: self comments. | ||
temporaries do: [:each | methodComments addAll: each comments]. | ||
(parent notNil and: [parent isBlock]) | ||
ifTrue: [parent arguments do: [:each | methodComments addAll: each comments]]. | ||
^methodComments asSortedCollection: [:a :b | a start < b start] | ||
] |