[MonoDevelop] [Patch] Refactoring Move class to file featute

Vadim Chekan kot.begemot at gmail.com
Tue Mar 31 03:22:54 EDT 2009


Hi Lluis,

I'm trying to find it out which namespaces a class is using in order
to insert only the used ones into new file.
If I am given IType of class which I want to move, how do I find list
of namespaces it uses in "using" declarations?

Vadim.

On Tue, Mar 3, 2009 at 12:01 PM, Lluis Sanchez Gual <lluis at novell.com> wrote:
> El dg 01 de 03 de 2009 a les 15:24 -0800, en/na Vadim Chekan va
> escriure:
>> Hi all,
>>
>> I've implemented "Move class to a file" feature from ToDo list (attached).
>> It is still has some TODO in the code to be implemented but is already
>> usable. So if it will be  committed I'll keep working on it.
>> Please let me know if something needs to be improved.
>>
>
> Hi!
>
> Thanks for the patch. Some comments:
>
>      * You should take into account compound types, that is, types
>        composed by several parts spread in different files. Compound
>        ITypes are instances of CompoundType.
>      * To be able to build the new file, "using" statements should be
>        moved along the class.
>      * The file name should be selected by the user. MD can suggest a
>        file name using the class name, but the user has to choose.
>      * Maybe it would be easier to have a single MoveToFile operation
>        in IRefactorer.
>
> Lluis.
>
>
>



-- 
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified


More information about the Monodevelop-list mailing list