Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Sep 16, 2023
1 parent ce43de0 commit 60b67d1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Refactoring-Core/RBAbstractClass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ RBAbstractClass >> allSuperclassesUntil: aClass [
^supers
]

{ #category : 'accessing' }
RBAbstractClass >> binding [
^ Smalltalk globals associationAt: self name
]

{ #category : 'method accessing' }
RBAbstractClass >> bindingOf: aString [
^self realClass classPool associationAt: aString asSymbol
Expand Down Expand Up @@ -194,7 +199,8 @@ RBAbstractClass >> checkSelector: aSelector using: aMatcher [

{ #category : 'accessing' }
RBAbstractClass >> classBinding [
^ Smalltalk globals associationAt: self name
self deprecated: 'Use binding' transformWith: '`@receiver classBinding' -> '`@receiver binding'.
^ self binding
]

{ #category : 'accessing - navigation' }
Expand Down Expand Up @@ -791,7 +797,7 @@ RBAbstractClass >> whichSelectorsReferToClass: aRBClass [
]
].
( self isDefined and: [ aRBClass isDefined ] )
ifTrue: [ selectors addAll: ( self existingMethodsThatReferTo: aRBClass classBinding ).
ifTrue: [ selectors addAll: ( self existingMethodsThatReferTo: aRBClass binding ).
selectors addAll: ( self existingMethodsThatReferTo: aRBClass name )
].
^ selectors
Expand Down

0 comments on commit 60b67d1

Please sign in to comment.