Skip to content

Commit f50cdf5

Browse files
committed
Add logging to missing underlying enum type
1 parent 8e6e418 commit f50cdf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

csharp/extractor/Semmle.Extraction.CIL/Entities/CustomAttributeDecoder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public PrimitiveTypeCode GetUnderlyingEnumType(Type type)
3636
return underlying.Value;
3737
}
3838

39+
var name = type.GetQualifiedName();
40+
cx.Cx.Extractor.Logger.Log(Util.Logging.Severity.Info, $"Couldn't get underlying enum type for {name}");
41+
3942
// We can't fall back to Int32, because the type returned here defines how many bytes are read from the
4043
// stream and how those bytes are interpreted.
4144
throw new NotImplementedException();

0 commit comments

Comments
 (0)