1 write to Title
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
185this.Title = title;
54 references to Title
AnalyzerRunner (1)
Program.cs (1)
157description = diagnostic.Descriptor?.Title.ToString();
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
CodeStyleConfigFileGenerator (1)
Program.cs (1)
149result.AppendLine($"# {rule.Id}: {rule.Title}");
GenerateRulesMissingDocumentation (1)
Program.cs (1)
78var escapedTitle = descriptor.Title.ToString(CultureInfo.InvariantCulture).Replace("<", "\\<");
ILLink.CodeFixProvider (1)
UnconditionalSuppressMessageCodeFixProvider.cs (1)
48 var ruleTitle = diagnostic.Descriptor.Title.ToString (CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis (10)
CommandLine\SarifDiagnosticComparer.cs (3)
55&& x.Title.Equals(y.Title) 72Hash.Combine(obj.Title.GetHashCode(),
CommandLine\SarifV1ErrorLogger.cs (1)
163string? shortDescription = descriptor.Title.ToString(_culture);
CommandLine\SarifV2ErrorLogger.cs (1)
244string? shortDescription = descriptor.Title.ToString(_culture);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
96title: baseDescriptor.Title,
Diagnostic\DiagnosticDescriptor.cs (3)
211this.Title.Equals(other.Title); 228this.Title.GetHashCode())))))));
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
326forceLocalizableStringExceptions(descriptor.Title);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
279descriptor.Title,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (1)
51Assert.NotEqual("", descriptor.Title?.ToString() ?? "");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
724var title = descriptor.Title.ToString();
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (2)
62var title = includeTitle ? diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture) : null; 183var title = diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture);
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
150descriptor.Title.ToStringOrNull() ??
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
953#pragma warning disable {UserDiagnosticAnalyzer.Decsciptor.Id} // {UserDiagnosticAnalyzer.Decsciptor.Title} 957#pragma warning restore {UserDiagnosticAnalyzer.Decsciptor.Id} // {UserDiagnosticAnalyzer.Decsciptor.Title}
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\AnalyzerSetting.cs (1)
41public string Title => _descriptor.Title.ToString(CultureInfo.CurrentUICulture);
Microsoft.CodeAnalysis.Features (3)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
699? $"{_diagnostic.Id}: {_diagnostic.Descriptor.Title}"
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
79title: diagnostic.Descriptor.Title,
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
279descriptor.Title,
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (3)
26Assert.Equal(new LocalizableResourceString(nameof(FeaturesResources.RudeEdit), FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.Title); 38Assert.Equal(new LocalizableResourceString(nameof(FeaturesResources.EditAndContinue), FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.Title); 48Assert.Equal(new LocalizableResourceString(nameof(FeaturesResources.EditAndContinue), FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.Title);
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
149""shortDescription"": """ + Descriptor1.Title + @""", 163""shortDescription"": """ + Descriptor2.Title + @""", 226""shortDescription"": """ + Descriptor1.Title + @""", 240""shortDescription"": """ + Descriptor2.Title + @""", 463""text"": """ + Descriptor1.Title + @""" 481""text"": """ + Descriptor2.Title + @"""
Diagnostics\DescriptorFactory.cs (1)
22/// - empty <see cref="DiagnosticDescriptor.Title"/> and <see cref="DiagnosticDescriptor.Category"/>
Microsoft.CodeAnalysis.UnitTests (10)
Diagnostics\DiagnosticLocalizationTests.cs (10)
53Assert.Equal(fixedTitle, descriptor.Title.ToString(arCulture)); 73Assert.Equal<string>(fixedTitle, descriptor.Title.ToString()); 78Assert.Equal<string>(fixedTitle, descriptor.Title.ToString(CustomResourceManager.DefaultCulture)); 82Assert.Equal(localizedTitle, descriptor.Title.ToString(arCulture)); 92Assert.Equal(fixedTitle, localizableDiagnostic.Descriptor.Title.ToString()); 97Assert.Equal(fixedTitle, localizableDiagnostic.Descriptor.Title.ToString(CustomResourceManager.DefaultCulture)); 102Assert.Equal(localizedTitle, localizableDiagnostic.Descriptor.Title.ToString(arCulture)); 271var unused1 = descriptor2.Title.GetHashCode(); 277var localizableTitle = descriptor.Title; 320unused1 = descriptors[0].Title.ToString();
Microsoft.CodeAnalysis.VisualBasic.Features (2)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (2)
65Dim title = If(includeTitle, diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture), Nothing) 182Dim title = diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
475Dim title = descriptor.Title.ToString()
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\DiagnosticData.cs (1)
242title: diagnostic.Descriptor.Title.ToString(CultureInfo.CurrentUICulture),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
262return new DiagnosticDescriptor(descriptor.Id, descriptor.Title, messageFormat,
Microsoft.VisualStudio.LanguageServices (1)
TaskList\ProjectExternalErrorReporter.cs (1)
280title = descriptor.Title.ToString(CultureInfo.CurrentUICulture);