Author: jbevain
Date: 2007-07-20 05:26:57 -0400 (Fri, 20 Jul 2007)
New Revision: 82345

Modified:
   trunk/mcs/tools/linker/ChangeLog
   trunk/mcs/tools/linker/Mono.Linker.Steps/AdjustVisibilityStep.cs
Log:
2007-07-20  Jb Evain  <[EMAIL PROTECTED]>

        * Mono.Linker.Steps/AdjustVisibilityStep.cs:
                Don't change the visibility of the members if the type
                is marked internal.


Modified: trunk/mcs/tools/linker/ChangeLog
===================================================================
--- trunk/mcs/tools/linker/ChangeLog    2007-07-20 09:15:51 UTC (rev 82344)
+++ trunk/mcs/tools/linker/ChangeLog    2007-07-20 09:26:57 UTC (rev 82345)
@@ -1,3 +1,9 @@
+2007-07-20  Jb Evain  <[EMAIL PROTECTED]>
+
+       * Mono.Linker.Steps/AdjustVisibilityStep.cs:
+               Don't change the visibility of the members if the type
+               is marked internal.
+
 2007-07-18  Jb Evain  <[EMAIL PROTECTED]>
 
        * Mono.Linker/ResolutionException.cs:

Modified: trunk/mcs/tools/linker/Mono.Linker.Steps/AdjustVisibilityStep.cs
===================================================================
--- trunk/mcs/tools/linker/Mono.Linker.Steps/AdjustVisibilityStep.cs    
2007-07-20 09:15:51 UTC (rev 82344)
+++ trunk/mcs/tools/linker/Mono.Linker.Steps/AdjustVisibilityStep.cs    
2007-07-20 09:26:57 UTC (rev 82345)
@@ -41,17 +41,17 @@
 
                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)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to