示例#1
0
 private ImmutableDictionary <string, ImmutableArray <string> > LoadFixableDiagnosticIdsByPrefix()
 {
     return(FixableDiagnosticIds
            .GroupBy(f => f, DiagnosticIdComparer.Prefix)
            .ToImmutableDictionary(f => DiagnosticIdPrefix.GetPrefix(f.Key), f => f.ToImmutableArray()));
 }
示例#2
0
 private ImmutableDictionary <string, ImmutableArray <DiagnosticDescriptor> > LoadSupportedDiagnosticsByPrefix()
 {
     return(SupportedDiagnostics
            .GroupBy(f => f, DiagnosticDescriptorComparer.IdPrefix)
            .ToImmutableDictionary(f => DiagnosticIdPrefix.GetPrefix(f.Key.Id), f => f.ToImmutableArray()));
 }