@@ -13,10 +13,10 @@ namespace nanoFramework.Tools.MetadataProcessor
13
13
{
14
14
public sealed class nanoTablesContext
15
15
{
16
- private readonly HashSet < string > _ignoringAttributes =
17
- new HashSet < string > ( StringComparer . Ordinal )
16
+ internal static HashSet < string > IgnoringAttributes { get ; } = new HashSet < string > ( StringComparer . Ordinal )
18
17
{
19
18
// Assembly-level attributes
19
+ "System.Reflection.AssemblyFileVersionAttribute" ,
20
20
"System.Runtime.InteropServices.ComVisibleAttribute" ,
21
21
"System.Runtime.InteropServices.GuidAttribute" ,
22
22
@@ -53,6 +53,9 @@ public sealed class nanoTablesContext
53
53
// Intellisense filtering attributes
54
54
"System.ComponentModel.EditorBrowsableAttribute" ,
55
55
56
+ //Not supported
57
+ "System.Reflection.DefaultMemberAttribute" ,
58
+
56
59
// Not supported attributes
57
60
"System.MTAThreadAttribute" ,
58
61
"System.STAThreadAttribute" ,
@@ -77,19 +80,19 @@ public nanoTablesContext(
77
80
// add it to ignore list, if it's not already there
78
81
if ( ( ClassNamesToExclude . Contains ( item . AttributeType . FullName ) ||
79
82
ClassNamesToExclude . Contains ( item . AttributeType . DeclaringType ? . FullName ) ) &&
80
- ! ( _ignoringAttributes . Contains ( item . AttributeType . FullName ) ||
81
- _ignoringAttributes . Contains ( item . AttributeType . DeclaringType ? . FullName ) ) )
83
+ ! ( IgnoringAttributes . Contains ( item . AttributeType . FullName ) ||
84
+ IgnoringAttributes . Contains ( item . AttributeType . DeclaringType ? . FullName ) ) )
82
85
{
83
- _ignoringAttributes . Add ( item . AttributeType . FullName ) ;
86
+ IgnoringAttributes . Add ( item . AttributeType . FullName ) ;
84
87
}
85
88
}
86
89
87
90
// check ignoring attributes against ClassNamesToExclude
88
91
foreach ( var className in ClassNamesToExclude )
89
92
{
90
- if ( ! _ignoringAttributes . Contains ( className ) )
93
+ if ( ! IgnoringAttributes . Contains ( className ) )
91
94
{
92
- _ignoringAttributes . Add ( className ) ;
95
+ IgnoringAttributes . Add ( className ) ;
93
96
}
94
97
}
95
98
@@ -266,8 +269,8 @@ private bool IsAttribute(
266
269
MemberReference typeReference )
267
270
{
268
271
return
269
- ( _ignoringAttributes . Contains ( typeReference . FullName ) ||
270
- _ignoringAttributes . Contains ( typeReference . DeclaringType ? . FullName ) ) ;
272
+ ( IgnoringAttributes . Contains ( typeReference . FullName ) ||
273
+ IgnoringAttributes . Contains ( typeReference . DeclaringType ? . FullName ) ) ;
271
274
}
272
275
273
276
private static List < TypeDefinition > GetOrderedTypes (
0 commit comments