[402] Find Results Question

I've just noticed something in find results that I've not seen before. I was wondering if this is new or if I've just not noticed it before. Given:

namespace Foo
{
public enum BarType { One, Two }

public class Bar
{
BarType _type = BarType.One;
public BarType Type
{
get { return _type; }
set { _type = value; }
}
}
}

The results of a find usages on BarType is shown in the attached screenshots - one where occurances on the same line are merged, one where they are not merged. The result that is directly under the Foo.Bar node is the one that seems a bit strange.

Thanks

Sean



Attachment(s):
NotMerged.JPG
2 comments
Comment actions Permalink

Hello sean,

It always been this way. The problem is that type in field declaration is
not associated with field. Consider:
BarType _typeOne = BarType.One, _typeTwo = BarType.Two;
There is one type which corresponds to two fields.

I think we will fix this for a single-field declaration, thanks for reminding
about this issue :)

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


sk> I've just noticed something in find results that I've not seen
sk> before. I was wondering if this is new or if I've just not noticed
sk> it before. Given:
sk>
sk> namespace Foo
sk> {
sk> public enum BarType { One, Two }
sk> public class Bar
sk> {
sk> BarType _type = BarType.One;
sk> public BarType Type
sk> {
sk> get { return _type; }
sk> set { _type = value; }
sk> }
sk> }
sk> }
sk> The results of a find usages on BarType is shown in the attached
sk> screenshots - one where occurances on the same line are merged, one
sk> where they are not merged. The result that is directly under the
sk> Foo.Bar node is the one that seems a bit strange.
sk>
sk> Thanks
sk>
sk> Sean
sk>


0
Comment actions Permalink

Thanks Ilya, I checked in work today and it is indeed the same...I had not
noticed that before last night. However, I agree that it would be better
to merge single declarations.

Regards

Sean


0

Please sign in to leave a comment.