public void Deconstruct(out ITypeSymbol type, out DiagnosticGroupAttribute groupAttribute) { type = Type; groupAttribute = GroupAttribute; }
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>())); }
public ValidTypeInfo(ITypeSymbol type, DiagnosticGroupAttribute groupAttribute) { Type = type; GroupAttribute = groupAttribute; }