[vwnc] Pragmas and Rewrite Tool

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

[vwnc] Pragmas and Rewrite Tool

Mike Hales
Has anybody used the Rewrite Tool to successfully add pragmas to a method? I want to remove a certain message send, and instead tag the method with a particular pragma. Actually if I try to rewrite methods that have pragmas, they are removed. Is this a bug?

Mike

Mike Hales
Engineering Manager
KnowledgeScape
www.kscape.com

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Pragmas and Rewrite Tool

thomas.hawker

Mike,

 

Well, I won’t call it a bug, but the rewrite tool doesn’t deal with pragmas as distinct patterns against which search-and-replace operations can be performed.  I raised the issue some time ago (last year?) and, on digging into it, found that the rewrite parser basically ignores the text within the annotation – that is, it sees “<” and more or less copies verbatim everything up to “>”.  It doesn’t have any rules for treating it as a message send or a specially recognized construct, so you can’t do anything with them, such as removing specific ones, refactoring them, or moving them into or out of the method code.  I recall someone (Travis, Alan, Ralf?) commenting that it needs to be smarter about annotations, but I don’t think anything came of it.

 

Cheers!

 

Tom Hawker

Senior Framework Developer

Home

+1 (408) 274-4128

The Environment:

We take it personally

Office

+1 (408) 576-6591

Mobile

+1 (408) 835-3643

 


From: [hidden email] [mailto:[hidden email]] On Behalf Of Mike Hales
Sent: Wednesday, November 18, 2009 4:58 PM
To: [hidden email]
Subject: [vwnc] Pragmas and Rewrite Tool

 

Has anybody used the Rewrite Tool to successfully add pragmas to a method? I want to remove a certain message send, and instead tag the method with a particular pragma. Actually if I try to rewrite methods that have pragmas, they are removed. Is this a bug?

Mike

Mike Hales
Engineering Manager
KnowledgeScape
www.kscape.com

IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not
intended for you, please delete it immediately unread.  The internet
cannot guarantee that this communication is free of viruses, interception
or interference and anyone who communicates with us by email is taken
to accept the risks in doing so.  Without limitation, OOCL and its affiliates
accept no liability whatsoever and howsoever arising in connection with
the use of this email.  Under no circumstances shall this email constitute
a binding agreement to carry or for provision of carriage services by OOCL,
which is subject to the availability of carrier's equipment and vessels and
the terms and conditions of OOCL's standard bill of lading which is also
available at http://www.oocl.com.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc