Re: [Pharo-users] Matching block parameter in rewrite rule

2020-05-07 Thread Gabriel Cotelli
Cyril, something like this: | env rewriter result methods changes | env := RBBrowserEnvironment default forPackages: (RPackageOrganizer default packages ). rewriter := RBParseTreeRewriter new. rewriter replace:'`@receiver detect: `@arg1 ifFound: [ :`arg2 | `arg2 ] ifNone: `@arg3' with: '`@receive

[Pharo-users] Matching block parameter in rewrite rule

2020-05-07 Thread Cyril Ferlicot D.
Hi, I was wondering if it was possible with the parse tree rewriter to match a block parameter? I would like to be able, for example, to rewrite: `#() detect: #odd ifFound: [ :e | e ] ifNone: [ self toto ]` as `#() detect: #odd ifNone: [ self toto ]` But I don't know how to express this rule

[Pharo-users] Issues browsing/saving a class in a package - seems like its unknown

2020-05-07 Thread PAUL DEBRUICKER
Hi - In Pharo 7 I'm having an issue with a particular class where if I browse it in Calypso I can see & navigate among the methods in the class. If I run some of the methods I get dnu errors for methods I can see in the class browser. If I re-save a method that has the dnu without chang