Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/NewTools-MethodBrowsers/StMethodBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@ StMethodBrowser class >> browseReferencesToVariable: aVariable inClass: aClass [
^ self browse: (self referencesToVariable: aVariable inClass: aClass) asReferencesToVariable: aVariable inClass: aClass
]

{ #category : 'opening' }
StMethodBrowser class >> browseReferencesToVariables: variables [

| methods |
methods := SystemNavigation default allMethods select: [ :m | variables anySatisfy: [ :var | var isAccessedIn: m ] ].
^ self new
methods: methods asArray;
title: 'References to ' , (', ' join: (variables collect: [ :v | v name ]));
open
]

{ #category : 'opening' }
StMethodBrowser class >> browseSendersOf: aSymbol [
"Special version that sets the correct refreshing block for senders"
Expand All @@ -172,6 +183,17 @@ StMethodBrowser class >> browseSendersOfAll: aCollectionOfSymbols [
^ self browse: methods asArray asSendersOfAll: aCollectionOfSymbols
]

{ #category : 'opening' }
StMethodBrowser class >> browseWritersOfVariables: variables [

| methods |
methods := SystemNavigation default allMethods select: [ :m | variables anySatisfy: [ :var | var isWrittenIn: m ] ].
^ self new
methods: methods asArray;
title: 'Writers to ' , (', ' join: (variables collect: [ :v | v name ]));
open
]

{ #category : 'private' }
StMethodBrowser class >> implementorsOf: aSymbol [
"Do not use aSymbol implementors because it is a disguised global"
Expand Down
Loading