Hi Laura,

you can use this method:

replaceAll: aString with: anotherString
> "replaces aString in source code in the whole image in all methods with
> anotherString"
> ((self systemNavigation allMethodsWithSourceString: aString matchCase:
> false) collect: #compiledMethod)
> do: [ :each | each methodClass compile: (each sourceCode copyReplaceAll:
> aString with: anotherString) classified: each category ]


It will replace all  'expression1' by 'expression2' globally in the whole
image. Will take some time

Cheers,
Alex

On Thu, Mar 19, 2015 at 5:51 PM, Laura Risani <laura.ris...@gmail.com>
wrote:

> Hi all,
>
> How do you replace all 'expression1' in source code by 'expression2'?
> I can find them with Finder but don't see any easy way to replace them.
> My problem is i want to change parameter names in many methods.
>
> Best,
> Laura
>

Reply via email to