projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12fdef
)
[mono-api-info] Rework SkipAttribute to use ordinal string comparison, and no string...
author
Rolf Bjarne Kvinge
<rolf@xamarin.com>
Wed, 27 Jan 2016 16:37:11 +0000
(17:37 +0100)
committer
Rolf Bjarne Kvinge
<rolf@xamarin.com>
Thu, 28 Jan 2016 13:49:06 +0000
(14:49 +0100)
mcs/tools/corcompare/mono-api-info.cs
patch
|
blob
|
history
diff --git
a/mcs/tools/corcompare/mono-api-info.cs
b/mcs/tools/corcompare/mono-api-info.cs
index 1e5fcd0e02167661f07bf87bbbf48720d161b7a1..4abfffd894633b8951ed31e7fd5899c980793e00 100644
(file)
--- a/
mcs/tools/corcompare/mono-api-info.cs
+++ b/
mcs/tools/corcompare/mono-api-info.cs
@@
-1405,10
+1405,10
@@
namespace CorCompare
static bool SkipAttribute (CustomAttribute attribute)
{
- var type_name = Utils.CleanupTypeName (attribute.Constructor.DeclaringType);
-
- return !TypeHelper.IsPublic (attribute)
-
|| type_name.EndsWith ("TODOAttribute"
);
+ if (!TypeHelper.IsPublic (attribute))
+ return true;
+
+
return attribute.Constructor.DeclaringType.Name.EndsWith ("TODOAttribute", StringComparison.Ordinal
);
}
public static void OutputAttributes (XmlWriter writer, params ICustomAttributeProvider[] providers)