Created
July 24, 2013 10:22
-
-
Save frankshearar/6069452 to your computer and use it in GitHub Desktop.
On what classes does some particular class depend?
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
| classDeps | | |
classDeps := [:cls | | |
(cls methodDict values gather: [:cm | | |
(((1 to: cm numLiterals) collect: [:i | cm literalAt: i]) | |
select: [:lit | lit isVariableBinding and: [lit value isBehavior]]) | |
collect: #value]) asSet difference: {cls}]. | |
classDeps value: TextComposer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment