Beispiel #1
0
 public void Deconstruct(out ITypeSymbol type, out DiagnosticGroupAttribute groupAttribute)
 {
     type           = Type;
     groupAttribute = GroupAttribute;
 }
Beispiel #2
0
 internal static DiagnosticDescriptor GetDescriptor(this DiagnosticDescriptionAttribute description, DiagnosticGroupAttribute groupAttribute)
 {
     return(new DiagnosticDescriptor($"{groupAttribute.GroupPrefix}{description.Id.ToString(groupAttribute.FormattingString)}",
                                     description.Title,
                                     description.Description,
                                     groupAttribute.CategoryName,
                                     description.Severity,
                                     description.EnableByDefault,
                                     description.LongDescription,
                                     description.HelpLinkUri,
                                     description.CustomTags ?? Array.Empty <string>()));
 }
Beispiel #3
0
 public ValidTypeInfo(ITypeSymbol type, DiagnosticGroupAttribute groupAttribute)
 {
     Type           = type;
     GroupAttribute = groupAttribute;
 }