+2009-09-10 Andrés G. Aragoneses <aaragoneses@novell.com>
+
+ * Mono.Linker.Steps/MarkStep.cs: Make IgnoreScope() virtual to
+ prevent marking custom attributes of foreign assemblies in a
+ derived step in the tuner. ( r: jb )
+
2009-09-09 Andrés G. Aragoneses <aaragoneses@novell.com>
* Mono.Linker.Steps/MarkStep.cs: Visibility changes needed by
Annotations.Mark (field);
}
- protected bool IgnoreScope (IMetadataScope scope)
+ protected virtual bool IgnoreScope (IMetadataScope scope)
{
AssemblyDefinition assembly = ResolveAssembly (scope);
return Annotations.GetAction (assembly) != AssemblyAction.Link;
+2009-09-10 Andrés G. Aragoneses <aaragoneses@novell.com>
+
+ * Mono.Tuner/MoonlightA11yApiMarker.cs: Don't mark attributes
+ of non-a11y assemblies.
+
2009-09-09 Andrés G. Aragoneses <aaragoneses@novell.com>
* Mono.Tuner/MoonlightA11yDescriptorGenerator.cs: Rather use
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-
+using System;
using System.Collections;
using System.Xml;
{
return assembly.ToString ().Contains ("DummyEntry") || assembly.ToString ().Contains ("MoonAtkBridge");
}
-
+
protected override void InitializeAssembly (AssemblyDefinition assembly)
{
if (IsA11yAssembly (assembly))
Annotations.Mark (method);
}
+ protected override bool IgnoreScope (IMetadataScope scope)
+ {
+ return false;
+ }
+
protected override void MarkType (TypeReference reference)
{
if (reference == null)
- return;
+ throw new ArgumentNullException ("reference");
reference = GetOriginalType (reference);
if (reference is GenericParameter)
return;
- if (IgnoreScope (reference.Scope))
- return;
-
TypeDefinition type = reference.Resolve ();
if (type == null)