Skip to content

Commit 9c91cfd

Browse files
authored
Fix checking for class inclusion in typedef extension (#84)
***NO_CI***
1 parent 6518788 commit 9c91cfd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/MetadataProcessor.Core/Extensions/TypeDefinitionExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ public static bool IncludeInStub(this TypeDefinition value)
1919
return false;
2020
}
2121

22+
typeDefFlags = typeDefFlags & nanoTypeDefinitionFlags.TD_Semantics;
23+
2224
// Only generate a stub for classes and value types.
23-
if ( typeDefFlags.HasFlag(nanoTypeDefinitionFlags.TD_Semantics_Class) ||
24-
typeDefFlags.HasFlag(nanoTypeDefinitionFlags.TD_Semantics_ValueType) )
25+
if (typeDefFlags == nanoTypeDefinitionFlags.TD_Semantics_Class ||
26+
typeDefFlags == nanoTypeDefinitionFlags.TD_Semantics_ValueType )
2527
{
2628
return true;
2729
}

0 commit comments

Comments
 (0)