+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:
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)