Re: C# Variable Declaration Spec
Brad Wilson <[email protected]> Sun, 22 Apr 2007 14:27:27 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
Using an Abstract Syntax Tree is your best bet for things like refactoring. Either you can build one yourself, or you can use DXCore (which is free, from the company that makes CodeRush). Then you can build your refactorings on that. The entire CodeRush product -- including RefactorPro! -- is built on top of DXCore. It's quite powerful. On 4/22/07, Brady Kelly <[email protected]> wrote: > > I'm trying to build an automatic refactor macro, to allow me to highlight > a > block of field declarations and refactor them as properties. I'm doing it > as much as a time saver as an exercise, so please don't all tell me > about a > tool that does it. My first step is to extract the variable names from > the > text block, and I figure the field name is "The last _word_ before a > semi-colon or equals sign. Am I correct here? Can anyone give me the BNF > for a field declaration? > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com