File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
source/MetadataProcessor.Core Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public static bool IncludeInStub(this TypeDefinition value)
3535 public static bool IsToExclude ( this TypeDefinition value )
3636 {
3737 return nanoTablesContext . ClassNamesToExclude . Contains ( value . FullName ) ||
38+ nanoTablesContext . ClassNamesToExclude . Contains ( value . Name ) ||
3839 nanoTablesContext . ClassNamesToExclude . Contains ( value . DeclaringType ? . FullName ) ;
3940 }
4041
@@ -79,7 +80,8 @@ public static EnumDeclaration ToEnumDeclaration(this TypeDefinition source)
7980 EnumDeclaration myEnum = new EnumDeclaration ( )
8081 {
8182 EnumName = enumName ,
82- FullName = source . FullName
83+ FullName = source . FullName ,
84+ Name = source . Name
8385 } ;
8486
8587 foreach ( var f in source . Fields )
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ public class EnumDeclaration
7676 {
7777 public string EnumName ;
7878 public string FullName ;
79+ public string Name ;
7980
8081 public List < EnumItem > Items = new List < EnumItem > ( ) ;
8182 }
Original file line number Diff line number Diff line change @@ -535,7 +535,8 @@ private void GenerateAssemblyHeader()
535535 foreach ( var e in _tablesContext . TypeDefinitionTable . EnumDeclarations )
536536 {
537537 // check if enum is to exclude
538- if ( nanoTablesContext . ClassNamesToExclude . Contains ( e . FullName ) )
538+ if ( nanoTablesContext . ClassNamesToExclude . Contains ( e . FullName ) ||
539+ nanoTablesContext . ClassNamesToExclude . Contains ( e . Name ) )
539540 {
540541 continue ;
541542 }
You can’t perform that action at this time.
0 commit comments