Any/all help appreciated.
Thanks,
Bob
Perhaps this work for what you need:
"This should handle symbols and methods."
Collection whichMethodsReferTo: #do:
"This will work for strings."
Collection whichMethodsContainSource: 'first'
I suspect that there may be a lot of different ways to do this.
Chris
Sorry I didn't respond earlier. Thanks for the suggestions. If you
pull down a new copy of my Burning River Goodies and look in the
RuleBasedLogic package you'll see how I ended up solving the problem.
In short, what I've got is a BlockClosure and I needed to determine if
it referred to a method or string. As it turned out I could use
BlockClosure>>method to find my way back to the method which defined
the block, then use the method's #refersToLiteral: and #sendsSelector:
methods to figure out if the method or literal was used in the
defining method.
Thanks,
Bob