[mono/monodevelop] 707392b0: Fixed 'Bug 16236 - Nested class Foo.Bar should have less priority than
Mike Krüger (
[email protected]) <
[email protected]>
Fri, 15 Nov 2013 06:31:19 +0000
| Newsgroups |
gmane.comp.gnome.mono.patches |
| Message-ID |
<000001425a74e3a9-00d60e38-66d5-4206-97b1-e4b23aa170d6-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/277db0fb2215...707392b048a1
Commit: 707392b048a1ae1ca269d929ad28ce7b65979356
Author: Mike Krüger <[email protected]> (mkrueger)
Date: 2013-11-15 06:29:47 GMT
URL: https://github.com/mono/monodevelop/commit/707392b048a1ae1ca269d929ad28ce7b65979356
Fixed 'Bug 16236 - Nested class Foo.Bar should have less priority than
normal class Bar'.
Changed paths:
M main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs
Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs
===================================================================
@@ -287,12 +287,18 @@ internal SearchResult CheckFile (ProjectFile file)
internal SearchResult CheckType (ITypeDefinition type)
{
int rank;
- if (MatchName (TypeSearchResult.GetPlainText (type, false), out rank))
+ if (MatchName (TypeSearchResult.GetPlainText (type, false), out rank)) {
+ if (type.DeclaringType != null)
+ rank--;
return new TypeSearchResult (pattern, TypeSearchResult.GetPlainText (type, false), rank, type, false) { Ambience = ambience };
+ }
if (!FullSearch)
return null;
- if (MatchName (TypeSearchResult.GetPlainText (type, true), out rank))
+ if (MatchName (TypeSearchResult.GetPlainText (type, true), out rank)) {
+ if (type.DeclaringType != null)
+ rank--;
return new TypeSearchResult (pattern, TypeSearchResult.GetPlainText (type, true), rank, type, true) { Ambience = ambience };
+ }
return null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches