6 types derived from LocalizableString
Microsoft.CodeAnalysis (2)
Diagnostic\LocalizableResourceString.cs (1)
17public sealed class LocalizableResourceString : LocalizableString
Diagnostic\LocalizableResourceString.FixedLocalizableString.cs (1)
12private sealed class FixedLocalizableString : LocalizableString
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
342public sealed class LocalizableStringWithArguments : LocalizableString
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
342public sealed class LocalizableStringWithArguments : LocalizableString
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1007private sealed class MyLocalizableStringThatThrows : LocalizableString
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\DiagnosticLocalizationTests.cs (1)
387private class ThrowingLocalizableString : LocalizableString
231 references to LocalizableString
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
259public static DiagnosticDescriptor WithMessageFormat(this DiagnosticDescriptor descriptor, LocalizableString messageFormat)
ConfigurationSchemaGenerator (3)
RuntimeSource\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
ILLink.CodeFixProvider (5)
BaseAttributeCodeFixProvider.cs (1)
21 private protected abstract LocalizableString CodeFixTitle { get; }
RequiresAssemblyFilesCodeFixProvider.cs (1)
27 private protected override LocalizableString CodeFixTitle => new LocalizableResourceString (nameof (Resources.RequiresAssemblyFilesCodeFixTitle), Resources.ResourceManager, typeof (Resources));
RequiresDynamicCodeCodeFixProvider.cs (1)
24 private protected override LocalizableString CodeFixTitle => new LocalizableResourceString (nameof (Resources.RequiresDynamicCodeCodeFixTitle), Resources.ResourceManager, typeof (Resources));
RequiresUnreferencedCodeCodeFixProvider.cs (1)
24 private protected override LocalizableString CodeFixTitle => new LocalizableResourceString (nameof (Resources.RequiresUnreferencedCodeCodeFixTitle), Resources.ResourceManager, typeof (Resources));
UnconditionalSuppressMessageCodeFixProvider.cs (1)
32 private protected override LocalizableString CodeFixTitle => new LocalizableResourceString (nameof (Resources.UconditionalSuppressMessageCodeFixTitle), Resources.ResourceManager, typeof (Resources));
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
20private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.ComponentParametersShouldBePublic_FixTitle), Resources.ResourceManager, typeof(Resources));
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
20private static readonly LocalizableString Title = new LocalizableResourceString(nameof(Resources.ComponentParametersShouldBePublic_FixTitle), Resources.ResourceManager, typeof(Resources));
Microsoft.CodeAnalysis (44)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (2)
30private readonly LocalizableString _suppressionJustification; 35LocalizableString suppressionJustification)
Diagnostic\CommonMessageProvider.cs (3)
38public abstract LocalizableString GetTitle(int code); 43public abstract LocalizableString GetDescription(int code); 48public abstract LocalizableString GetMessageFormat(int code);
Diagnostic\Diagnostic.cs (6)
197LocalizableString message, 202LocalizableString? title = null, 203LocalizableString? description = null, 247LocalizableString message, 253LocalizableString? title = null, 254LocalizableString? description = null,
Diagnostic\Diagnostic_SimpleDiagnostic.cs (3)
69internal static SimpleDiagnostic Create(string id, LocalizableString title, string category, LocalizableString message, LocalizableString description, string helpLink,
Diagnostic\DiagnosticDescriptor.cs (12)
31public LocalizableString Title { get; } 36public LocalizableString Description { get; } 47public LocalizableString MessageFormat { get; } 81/// use constructor overload <see cref="DiagnosticDescriptor(string, LocalizableString, LocalizableString, string, DiagnosticSeverity, bool, LocalizableString, string, string[])"/>. 139LocalizableString title, 140LocalizableString messageFormat, 144LocalizableString? description = null, 153LocalizableString title, 154LocalizableString messageFormat, 158LocalizableString? description,
Diagnostic\DiagnosticInfo.cs (3)
86var title = messageProvider.GetTitle(errorCode); 87var description = messageProvider.GetDescription(errorCode); 88var messageFormat = messageProvider.GetMessageFormat(errorCode);
Diagnostic\LocalizableString.cs (6)
11/// NOTE: Types implementing <see cref="LocalizableString"/> must be serializable. 13public abstract partial class LocalizableString : IFormattable, IEquatable<LocalizableString?> 16/// Fired when an exception is raised by any of the public methods of <see cref="LocalizableString"/>. 37public static explicit operator string?(LocalizableString localizableResource) 42public static implicit operator LocalizableString(string? fixedResource) 83public bool Equals(LocalizableString? other)
Diagnostic\SuppressionDescriptor.cs (4)
29public LocalizableString Justification { get; } 34/// use constructor overload <see cref="SuppressionDescriptor(string, string, LocalizableString)"/>. 43: this(id, suppressedDiagnosticId, (LocalizableString)justification) 56LocalizableString justification)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (5)
25private static ImmutableDictionary<LocalizableString, Exception?> s_localizableStringToException = ImmutableDictionary<LocalizableString, Exception?>.Empty.WithComparers(Roslyn.Utilities.ReferenceEqualityComparer.Instance); 334void forceLocalizableStringExceptions(LocalizableString localizableString) 344static Exception? getAndCacheToStringException(LocalizableString localizableString) 351static Exception? computeException(LocalizableString localizableString)
Microsoft.CodeAnalysis.CodeStyle (48)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (4)
38LocalizableString title, 39LocalizableString? messageFormat = null, 68LocalizableString title, 69LocalizableString? messageFormat = null,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (5)
22LocalizableString title, 23LocalizableString? messageFormat, 53LocalizableString title, 54LocalizableString? messageFormat = null, 57LocalizableString? description = null)
src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (4)
43LocalizableString title, 44LocalizableString? messageFormat = null, 75LocalizableString title, 76LocalizableString? messageFormat = null,
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (3)
42LocalizableString title, 43LocalizableString messageFormat, 48LocalizableString? description = null)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
13protected AbstractConvertTypeOfToNameOfDiagnosticAnalyzer(LocalizableString title)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (6)
13private static readonly LocalizableString s_invalidHeaderTitle = new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 14private static readonly LocalizableString s_invalidHeaderMessage = new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_contains_a_header_that_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 17private static readonly LocalizableString s_missingHeaderTitle = new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_is_missing_or_not_located_at_the_top_of_the_file), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 18private static readonly LocalizableString s_missingHeaderMessage = new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_is_missing_a_required_header), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 21private static DiagnosticDescriptor CreateDescriptorForFileHeader(LocalizableString title, LocalizableString message)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
52var message = CreateMessage(descriptor, messageArgs); 56private static LocalizableString CreateMessage(DiagnosticDescriptor descriptor, object[] messageArgs) 112LocalizableString message, 182LocalizableString message, 208LocalizableString message, 262LocalizableString message) 344private readonly LocalizableString _messageFormat; 347public LocalizableStringWithArguments(LocalizableString messageFormat, params object[] formatArguments)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
22private static readonly LocalizableString s_localizableMessageFormat = new LocalizableResourceString(nameof(AnalyzersResources.Naming_rule_violation_0), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 23private static readonly LocalizableString s_localizableTitleNamingStyle = new LocalizableResourceString(nameof(AnalyzersResources.Naming_Styles), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (2)
20private static readonly LocalizableString s_localizableTitle = new LocalizableResourceString(nameof(AnalyzersResources.Add_missing_cases), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 21private static readonly LocalizableString s_localizableMessage = new LocalizableResourceString(nameof(AnalyzersResources.Populate_switch), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (2)
49protected AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer(LocalizableString titleAndMessage) 56private static ImmutableArray<DiagnosticDescriptor> GetDescriptors(LocalizableString titleAndMessage, out DiagnosticDescriptor classificationIdDescriptor, out DiagnosticDescriptor generatedCodeClassificationIdDescriptor)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
546private static LocalizableString GetMessage(
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (3)
140var message = GetMessageForUnusedParameterDiagnostic( 151private static LocalizableString GetMessageForUnusedParameterDiagnostic( 157LocalizableString messageFormat;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
38private static readonly LocalizableString s_localizableMessage = new LocalizableResourceString(nameof(AnalyzersResources.Name_can_be_simplified), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 40private static readonly LocalizableString s_localizableTitleSimplifyNames = new LocalizableResourceString(nameof(AnalyzersResources.Simplify_Names), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 48private static readonly LocalizableString s_localizableTitleSimplifyMemberAccess = new LocalizableResourceString(nameof(AnalyzersResources.Simplify_Member_Access), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
19protected AbstractUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer(LocalizableString title)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
21private static readonly LocalizableString Title = new LocalizableResourceString( 26private static readonly LocalizableString MessageFormat = new LocalizableResourceString(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
259public static DiagnosticDescriptor WithMessageFormat(this DiagnosticDescriptor descriptor, LocalizableString messageFormat)
Microsoft.CodeAnalysis.CSharp (3)
Errors\MessageProvider.cs (3)
35public override LocalizableString GetMessageFormat(int code) 40public override LocalizableString GetDescription(int code) 45public override LocalizableString GetTitle(int code)
Microsoft.CodeAnalysis.CSharp.CodeStyle (16)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
18public abstract LocalizableString UseExpressionBodyTitle { get; } 19public abstract LocalizableString UseBlockBodyTitle { get; }
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (4)
31public override LocalizableString UseExpressionBodyTitle { get; } 32public override LocalizableString UseBlockBodyTitle { get; } 40LocalizableString useExpressionBodyTitle, 41LocalizableString useBlockBodyTitle,
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
108LocalizableString title, LocalizableString message)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (2)
17internal static readonly LocalizableString UseExpressionBodyTitle = new LocalizableResourceString(nameof(CSharpAnalyzersResources.Use_expression_body_for_lambda_expression), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)); 18internal static readonly LocalizableString UseBlockBodyTitle = new LocalizableResourceString(nameof(CSharpAnalyzersResources.Use_block_body_for_lambda_expression), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (2)
25string diagnosticId, EnforceOnBuild enforceOnBuild, LocalizableString title, LocalizableString message)
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseExplicitTypeDiagnosticAnalyzer.cs (2)
13private static readonly LocalizableString s_Title = 16private static readonly LocalizableString s_Message =
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseImplicitTypeDiagnosticAnalyzer.cs (2)
13private static readonly LocalizableString s_Title = 16private static readonly LocalizableString s_Message =
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
QuickInfo\DiagnosticAnalyzerQuickInfoSourceTests.cs (1)
230var localizable = MessageProvider.Instance.GetTitle((int)errorCode);
Microsoft.CodeAnalysis.CSharp.Features (18)
Diagnostics\Analyzers\CSharpUnboundIdentifiersDiagnosticAnalyzer.cs (1)
18private readonly LocalizableString _nameNotInContextMessageFormat =
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProviderExtensions.cs (1)
14public static string? ToStringOrNull(this LocalizableString @this)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (2)
18public abstract LocalizableString UseExpressionBodyTitle { get; } 19public abstract LocalizableString UseBlockBodyTitle { get; }
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (4)
31public override LocalizableString UseExpressionBodyTitle { get; } 32public override LocalizableString UseBlockBodyTitle { get; } 40LocalizableString useExpressionBodyTitle, 41LocalizableString useBlockBodyTitle,
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
108LocalizableString title, LocalizableString message)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (2)
17internal static readonly LocalizableString UseExpressionBodyTitle = new LocalizableResourceString(nameof(CSharpAnalyzersResources.Use_expression_body_for_lambda_expression), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources)); 18internal static readonly LocalizableString UseBlockBodyTitle = new LocalizableResourceString(nameof(CSharpAnalyzersResources.Use_block_body_for_lambda_expression), CSharpAnalyzersResources.ResourceManager, typeof(CSharpAnalyzersResources));
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (2)
25string diagnosticId, EnforceOnBuild enforceOnBuild, LocalizableString title, LocalizableString message)
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseExplicitTypeDiagnosticAnalyzer.cs (2)
13private static readonly LocalizableString s_Title = 16private static readonly LocalizableString s_Message =
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpUseImplicitTypeDiagnosticAnalyzer.cs (2)
13private static readonly LocalizableString s_Title = 16private static readonly LocalizableString s_Message =
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (3)
2808public override LocalizableString GetDescription(int code) 2813public override LocalizableString GetTitle(int code) 2818public override LocalizableString GetMessageFormat(int code)
Microsoft.CodeAnalysis.Features (48)
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
48protected static DiagnosticDescriptor GetDiagnosticDescriptor(string id, LocalizableString messageFormat)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer.cs (4)
38LocalizableString title, 39LocalizableString? messageFormat = null, 68LocalizableString title, 69LocalizableString? messageFormat = null,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (5)
22LocalizableString title, 23LocalizableString? messageFormat, 53LocalizableString title, 54LocalizableString? messageFormat = null, 57LocalizableString? description = null)
src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (4)
43LocalizableString title, 44LocalizableString? messageFormat = null, 75LocalizableString title, 76LocalizableString? messageFormat = null,
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (3)
42LocalizableString title, 43LocalizableString messageFormat, 48LocalizableString? description = null)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
13protected AbstractConvertTypeOfToNameOfDiagnosticAnalyzer(LocalizableString title)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderDiagnosticAnalyzer.cs (6)
13private static readonly LocalizableString s_invalidHeaderTitle = new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 14private static readonly LocalizableString s_invalidHeaderMessage = new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_contains_a_header_that_does_not_match_the_required_text), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 17private static readonly LocalizableString s_missingHeaderTitle = new LocalizableResourceString(nameof(AnalyzersResources.The_file_header_is_missing_or_not_located_at_the_top_of_the_file), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 18private static readonly LocalizableString s_missingHeaderMessage = new LocalizableResourceString(nameof(AnalyzersResources.A_source_file_is_missing_a_required_header), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 21private static DiagnosticDescriptor CreateDescriptorForFileHeader(LocalizableString title, LocalizableString message)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
52var message = CreateMessage(descriptor, messageArgs); 56private static LocalizableString CreateMessage(DiagnosticDescriptor descriptor, object[] messageArgs) 112LocalizableString message, 182LocalizableString message, 208LocalizableString message, 262LocalizableString message) 344private readonly LocalizableString _messageFormat; 347public LocalizableStringWithArguments(LocalizableString messageFormat, params object[] formatArguments)
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (2)
22private static readonly LocalizableString s_localizableMessageFormat = new LocalizableResourceString(nameof(AnalyzersResources.Naming_rule_violation_0), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 23private static readonly LocalizableString s_localizableTitleNamingStyle = new LocalizableResourceString(nameof(AnalyzersResources.Naming_Styles), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchDiagnosticAnalyzer.cs (2)
20private static readonly LocalizableString s_localizableTitle = new LocalizableResourceString(nameof(AnalyzersResources.Add_missing_cases), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 21private static readonly LocalizableString s_localizableMessage = new LocalizableResourceString(nameof(AnalyzersResources.Populate_switch), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (2)
49protected AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer(LocalizableString titleAndMessage) 56private static ImmutableArray<DiagnosticDescriptor> GetDescriptors(LocalizableString titleAndMessage, out DiagnosticDescriptor classificationIdDescriptor, out DiagnosticDescriptor generatedCodeClassificationIdDescriptor)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
546private static LocalizableString GetMessage(
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (3)
140var message = GetMessageForUnusedParameterDiagnostic( 151private static LocalizableString GetMessageForUnusedParameterDiagnostic( 157LocalizableString messageFormat;
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (3)
38private static readonly LocalizableString s_localizableMessage = new LocalizableResourceString(nameof(AnalyzersResources.Name_can_be_simplified), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 40private static readonly LocalizableString s_localizableTitleSimplifyNames = new LocalizableResourceString(nameof(AnalyzersResources.Simplify_Names), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)); 48private static readonly LocalizableString s_localizableTitleSimplifyMemberAccess = new LocalizableResourceString(nameof(AnalyzersResources.Simplify_Member_Access), AnalyzersResources.ResourceManager, typeof(AnalyzersResources));
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
19protected AbstractUseIsNullCheckForReferenceEqualsDiagnosticAnalyzer(LocalizableString title)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
21private static readonly LocalizableString Title = new LocalizableResourceString( 26private static readonly LocalizableString MessageFormat = new LocalizableResourceString(
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\BoxingOperationAnalyzer.cs (2)
20private static readonly LocalizableString s_localizableTitle = "Boxing"; 21private static readonly LocalizableString s_localizableMessage = "Boxing is expensive";
Diagnostics\EmptyArrayAnalyzer.cs (2)
25private static readonly LocalizableString s_localizableTitle = "Empty Array"; 26private static readonly LocalizableString s_localizableMessage = "Empty array creation can be replaced with Array.Empty";
Microsoft.CodeAnalysis.UnitTests (3)
Diagnostics\DiagnosticLocalizationTests.cs (3)
277var localizableTitle = descriptor.Title; 278var localizableMessage = descriptor.MessageFormat; 279var localizableDescription = descriptor.Description;
Microsoft.CodeAnalysis.VisualBasic (3)
Errors\MessageProvider.vb (3)
30Public Overrides Function GetMessageFormat(code As Integer) As LocalizableString 34Public Overrides Function GetDescription(code As Integer) As LocalizableString 38Public Overrides Function GetTitle(code As Integer) As LocalizableString
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Diagnostics\Analyzers\VisualBasicUnboundIdentifiersDiagnosticAnalyzer.vb (1)
15Private ReadOnly _messageFormat As LocalizableString = New LocalizableResourceString(NameOf(VBFeaturesResources.Type_0_is_not_defined), VBFeaturesResources.ResourceManager, GetType(VBFeaturesResources))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Syntax\GeneratedTests.vb (3)
66Public Overrides Function GetDescription(code As Integer) As LocalizableString 70Public Overrides Function GetMessageFormat(code As Integer) As LocalizableString 74Public Overrides Function GetTitle(code As Integer) As LocalizableString
TestSyntaxNodes.vb (3)
1075Public Overrides Function GetDescription(code As Integer) As LocalizableString 1079Public Overrides Function GetTitle(code As Integer) As LocalizableString 1083Public Overrides Function GetMessageFormat(code As Integer) As LocalizableString
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
259public static DiagnosticDescriptor WithMessageFormat(this DiagnosticDescriptor descriptor, LocalizableString messageFormat)
Microsoft.Extensions.Logging.Generators (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
Microsoft.Interop.ComInterfaceGenerator (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
Microsoft.Interop.JavaScript.JSImportGenerator (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
Microsoft.Interop.LibraryImportGenerator (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
System.Text.Json.SourceGeneration (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,
System.Text.RegularExpressions.Generator (3)
src\libraries\Common\src\Roslyn\DiagnosticDescriptorHelper.cs (3)
12LocalizableString title, 13LocalizableString messageFormat, 17LocalizableString? description = null,