예제 #1
0
        public ImmutableDictionary <string, ImmutableArray <DiagnosticDescriptor> > GetDiagnosticDescriptors(Project projectOpt)
        {
            if (projectOpt == null)
            {
                return(_analyzerManager.GetHostDiagnosticDescriptorsPerReference());
            }

            return(_analyzerManager.CreateDiagnosticDescriptorsPerReference(projectOpt));
        }