Reorder type members doesn't move the comments (RSRP-60741)

When I invoke a type member reorder some of my comments are screwed (this is
not true for source code documentation that is handled correctly). Assume I
have the following code:

using NUnit.Framework;


public class MyTest
{

public void Construction()
{
//TODO
}

//
public void ADisabledTest()
{
//THIS TEST SHOULDN'T BE RUN
}

//Constructor
public MyTest()
{
//TODO
}
}

After type members reorder I get the following:

using NUnit.Framework;


public class MyTest
{
public MyTest()
{
//TODO
}


public void Construction()
{
//TODO
}

//
public void ADisabledTest()
{
//THIS TEST SHOULDN'T BE RUN
}

//Constructor
}

I consider this a problem. Do you agree?

David.

PS: Jira issue created.

1 comment
Comment actions Permalink

To attach specific comment to type member, please use xml-style comments
(they're designed to be attached to member). Otherwise, Member Reordering
will likely break them

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"David Pokluda" <info@online.pokluda.cz> wrote in message
news:fqs67g$52s$1@is.intellij.net...

When I invoke a type member reorder some of my comments are screwed (this
is not true for source code documentation that is handled correctly).
Assume I have the following code:

>

using NUnit.Framework;

>


public class MyTest
{

public void Construction()
{
//TODO
}

>

//
public void ADisabledTest()
{
//THIS TEST SHOULDN'T BE RUN
}

>

//Constructor
public MyTest()
{
//TODO
}
}

>

After type members reorder I get the following:

>

using NUnit.Framework;

>


public class MyTest
{
public MyTest()
{
//TODO
}

>


public void Construction()
{
//TODO
}

>

//
public void ADisabledTest()
{
//THIS TEST SHOULDN'T BE RUN
}

>

//Constructor
}

>

I consider this a problem. Do you agree?

>

David.

>

PS: Jira issue created.



0

Please sign in to leave a comment.