Extractor fails when enum description not applied on all members
perpetualKid opened this issue · comments
Extractor expects enum description on all members when applied to any member or the enum itself
[Description("Rotation")]
public enum Rotation
{
CounterClockwise = -1,
None = 0,
Clockwise = 1,
}
fails with NRE in ParserBase.GetStrings Line 143 when messageId will be null (since no attribute was extracted
catalog.AddOrUpdateEntry(context, messageId, $"{pathRelative}:{member.GetLocation().GetLineSpan().StartLinePosition.Line + 1}", false);
works:
[Description("Rotation")]
public enum Rotation
{
[Description("CounterClockwise")]CounterClockwise = -1,
[Description("None")]None = 0,
[Description("Clockwise")]Clockwise = 1,
}