Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
Fix deprecation
  • Loading branch information
jecisc committed Sep 13, 2023
1 parent 10c77d0 commit 912a698
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Microdown-Tests/MicMicrodownSnippetFactory.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ Class {
MicMicrodownSnippetFactory class >> buildDocument [
"Answer a <String> with a whole document made up from the receiver's methods containing Microdown samples"

^ String streamContents: [ : stream |
| factory |
factory := self new.
(self protocolNames difference: { #initialization . #utilities })
collect: [ : protoName | self organization listAtCategoryNamed: protoName ]
thenDo: [ : protoCollection |
protoCollection
select: #isUnary
thenDo: [ : elementTypeSelector |
stream
cr;
<< (factory perform: elementTypeSelector) ] ] ]
^ String streamContents: [ :stream |
| factory |
factory := self new.
(self protocolNames difference: { #initialization. #utilities })
collect: [ :protoName | self selectorsInProtocol: protoName ]
thenDo: [ :protoCollection |
protoCollection
select: #isUnary
thenDo: [ :elementTypeSelector |
stream
cr;
<< (factory perform: elementTypeSelector) ] ] ]
]

{ #category : #anchor }
Expand Down

0 comments on commit 912a698

Please sign in to comment.