[MonoDevelop] Refactorer question
Vadim Chekan
kot.begemot at gmail.com
Fri Jan 30 01:55:06 EST 2009
Hi all,
I'm trying to implement refactoring function "Move class to file" as
described on TODO page.
If I understand correctly, there is BaseRefactorer class and its idea
is that it contains lang-independent logic. Whatever is language
dependent, must be implemented in appropriate plugin, for example
CSharpRefactorer.
If I'm right, then would it be a bug the following code in BaseRefactorer:
public IType CreateClass (RefactorerContext ctx, string directory,
string namspace, CodeTypeDeclaration type)
{
CodeCompileUnit unit = new CodeCompileUnit ();
CodeNamespace ns = new CodeNamespace (namspace);
ns.Types.Add (type);
unit.Namespaces.Add (ns);
string file = Path.Combine (directory, type.Name + ".cs");
What if we refactor a language different than c#, should extension be
obtained from appropriate refactorer binding?
Vadim.
--
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified
More information about the Monodevelop-list
mailing list