how to query for methods with compilation failures?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to query for methods with compilation failures?

Sebastian Sastre-2
hi there,
I've ported an app to pharo+seaside 2.9a2 it's starting to work abut in this
stage I have N methods with compilation failures.
For instance, what once was SUFunction now is JSFunction an others like that
I wish those methods listed so I can fix one by one in one rant instead of
[self test; annoy; fix] timesRepeat: N  
:) any ideas?
thanks,
sebastian


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: how to query for methods with compilation failures?

Lukas Renggli
> :) any ideas?

Code Critics (Lint) points out such errors as "References an
undeclared variable".

> For instance, what once was SUFunction now is JSFunction an others like that
> I wish those methods listed so I can fix one by one in one rant instead of
> [self test; annoy; fix] timesRepeat: N

If you have many uses of SU function you can use the following rewrite
rule to fix all occurrences at once:

ParseTreeRewriter new
        replace: 'SUFunction' with: 'JSFunction';
        yourself

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project