-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block which opens all methods containing variants
- Loading branch information
Showing
4 changed files
with
101 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Class { | ||
#name : #SBExploriants, | ||
#superclass : #SBBlock, | ||
#category : #'Sandblocks-Core' | ||
} | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBExploriants class >> openIn: anEditor [ | ||
|
||
(self new visualize) openIn: anEditor | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBExploriants >> allMethodsContainingVariants [ | ||
|
||
^ ((self systemNavigation allCallsOn: SBVariant matchingSelector) | ||
reject: [:aMethodReference | aMethodReference actualClass = SBVariant class]) | ||
collect: #compiledMethod | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBExploriants >> initialize [ | ||
|
||
super initialize. | ||
|
||
self | ||
attachDecorator: SBMoveDecorator new; | ||
attachDecorator: SBResizableDecorator new; | ||
changeTableLayout; | ||
listDirection: #topToBottom; | ||
layoutInset: 8; | ||
cellGap: 16; | ||
hResizing: #shrinkWrap; | ||
vResizing: #shrinkWrap | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBExploriants >> openIn: anEditor [ | ||
|
||
anEditor openMorphInView: self | ||
] | ||
|
||
{ #category : #'as yet unclassified' } | ||
SBExploriants >> visualize [ | ||
|
||
self allMethodsContainingVariants | ||
collect: #asSandblock | ||
thenDo: [:aSBStMethod | self addMorphBack: aSBStMethod]. | ||
|
||
|
||
|
||
] |
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