2007-07-20 Jb Evain <jbevain@novell.com>
authorJb Evain <jbevain@gmail.com>
Fri, 20 Jul 2007 09:26:57 +0000 (09:26 -0000)
committerJb Evain <jbevain@gmail.com>
Fri, 20 Jul 2007 09:26:57 +0000 (09:26 -0000)
* Mono.Linker.Steps/AdjustVisibilityStep.cs:
Don't change the visibility of the members if the type
is marked internal.

svn path=/trunk/mcs/; revision=82345

mcs/tools/linker/ChangeLog
mcs/tools/linker/Mono.Linker.Steps/AdjustVisibilityStep.cs

index 5053729b36b743bc8b9f1009974dc6358164ad59..1c64239e5efd27497bc4a3cb3d96808434ddeb12 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-20  Jb Evain  <jbevain@novell.com>
+
+       * Mono.Linker.Steps/AdjustVisibilityStep.cs:
+               Don't change the visibility of the members if the type
+               is marked internal.
+
 2007-07-18  Jb Evain  <jbevain@novell.com>
 
        * Mono.Linker/ResolutionException.cs:
index a5c9b5e689045704cdb11bc4ed6359e29d2b81f5..52b07f1a2aa6cd14519a579c99506e08e992d07b 100644 (file)
@@ -41,17 +41,17 @@ namespace Mono.Linker.Steps {
 
                static void ProcessType (TypeDefinition type)
                {
-                       ProcessFields (type.Fields);
-                       ProcessMethods (type.Constructors);
-                       ProcessMethods (type.Methods);
-
                        if (!IsPublic (type))
                                return;
 
-                       if (IsMarkedAsPublic (type))
+                       if (!IsMarkedAsPublic (type)) {
+                               SetInternalVisibility (type);
                                return;
+                       }
 
-                       SetInternalVisibility (type);
+                       ProcessFields (type.Fields);
+                       ProcessMethods (type.Constructors);
+                       ProcessMethods (type.Methods);
                }
 
                static void SetInternalVisibility (TypeDefinition type)