Skip to content

Commit

Permalink
Merge 6a08ef1
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrichau committed Jul 10, 2024
2 parents bbd17b1 + 6a08ef1 commit a982e66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
private
packages
| rPackage |
rPackage := Smalltalk at: #RPackage.
^ ((rPackage respondsTo: #packageOrganizer)
ifTrue: [ rPackage packageOrganizer ]
ifFalse: [ rPackage organizer ]) packages
^ (Smalltalk hasClassNamed: #RPackage)
ifTrue: [
| rPackage |
rPackage := Smalltalk at: #RPackage.
((rPackage respondsTo: #packageOrganizer)
ifTrue: [ rPackage packageOrganizer ]
ifFalse: [ rPackage organizer ]) packages ]
ifFalse: [ PackageOrganizer default packages ]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ parentOfClass: aClass
| package tag |

package := aClass package.
tag := package classTagForClass: aClass.
tag := (package respondsTo: #classTagForClass:)
ifTrue: [ package perform: #classTagForClass: with: aClass ]
ifFalse: [ package perform: #tagOf: with: aClass ].

^ (((tag name = package name) and: [ package classTags size <= 1 ]) or: [ tag isNil ])
ifTrue: [ package ]
Expand Down

0 comments on commit a982e66

Please sign in to comment.