Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tools/corcompare/mono-api-diff.cs')
-rw-r--r--mcs/tools/corcompare/mono-api-diff.cs31
1 files changed, 25 insertions, 6 deletions
diff --git a/mcs/tools/corcompare/mono-api-diff.cs b/mcs/tools/corcompare/mono-api-diff.cs
index b4983c0590e..d4843aba1bd 100644
--- a/mcs/tools/corcompare/mono-api-diff.cs
+++ b/mcs/tools/corcompare/mono-api-diff.cs
@@ -1280,6 +1280,9 @@ namespace Mono.AssemblyCompare
}
}
+ if (!CheckAttributes)
+ return;
+
XMLMember member = (XMLMember) other;
string acc = access [name] as string;
if (acc == null)
@@ -1302,6 +1305,12 @@ namespace Mono.AssemblyCompare
{
return null;
}
+
+ protected virtual bool CheckAttributes {
+ get {
+ return true;
+ }
+ }
}
class XMLFields : XMLMember
@@ -1360,6 +1369,14 @@ namespace Mono.AssemblyCompare
return fa.ToString ();
}
+ protected override bool CheckAttributes {
+ get {
+ // FIXME: set this to true once bugs #60086 and
+ // #60090 are fixed
+ return false;
+ }
+ }
+
public override string GroupName {
get { return "fields"; }
}
@@ -1698,12 +1715,6 @@ namespace Mono.AssemblyCompare
protected override string ConvertToString (int att)
{
MethodAttributes ma = (MethodAttributes) att;
- // ignore ReservedMasks
- ma &= ~ MethodAttributes.ReservedMask;
- ma &= ~ MethodAttributes.VtableLayoutMask;
- if ((ma & MethodAttributes.FamORAssem) != 0)
- ma = (ma & ~ MethodAttributes.FamORAssem) | MethodAttributes.Family;
-
// ignore the HasSecurity attribute for now
if ((ma & MethodAttributes.HasSecurity) != 0)
ma = (MethodAttributes) (att - (int) MethodAttributes.HasSecurity);
@@ -1719,6 +1730,14 @@ namespace Mono.AssemblyCompare
return ma.ToString ();
}
+ protected override bool CheckAttributes {
+ get {
+ // FIXME: set this to true once bugs #60086 and
+ // #60090 are fixed
+ return false;
+ }
+ }
+
public override string GroupName {
get { return "methods"; }
}