1 write to MessageFormat
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
187this.MessageFormat = messageFormat;
54 references to MessageFormat
AnalyzerRunner (1)
Program.cs (1)
160description = diagnostic.Descriptor?.MessageFormat.ToString();
Microsoft.CodeAnalysis (9)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
54var localizableMessageFormat = s_suppressionDiagnosticDescriptor.MessageFormat.ToString(formatProvider);
CommandLine\SarifDiagnosticComparer.cs (1)
19/// 1. <see cref="DiagnosticDescriptor.MessageFormat"/> is part of that built-in
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
97messageFormat: baseDescriptor.MessageFormat,
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
94return _descriptor.MessageFormat.ToString(formatProvider); 97var localizedMessageFormat = _descriptor.MessageFormat.ToString(formatProvider);
Diagnostic\DiagnosticDescriptor.cs (3)
210this.MessageFormat.Equals(other.MessageFormat) && 227Hash.Combine(this.MessageFormat.GetHashCode(),
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
327forceLocalizableStringExceptions(descriptor.MessageFormat);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
60return descriptor.MessageFormat; 64return new LocalizableStringWithArguments(descriptor.MessageFormat, messageArgs);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
648rule.MessageFormat, memberString);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
171messageFormat = s_unusedParameterRule.MessageFormat;
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\CodeFixVerifierHelper.cs (1)
64Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
9648Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal); 13075analyzer.Descriptor.MessageFormat, 13453Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", outWriter.ToString()); 13689Assert.Contains($"{prefix} {descriptor.Id}: {descriptor.MessageFormat}", outWriter.ToString()); 13813Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output);
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
152descriptor.MessageFormat.ToStringOrNull() ??
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Diagnostics\DiagnosticServiceTests.vb (3)
611Dim expectedMessage = String.Format(OperationAnalyzer.Descriptor.MessageFormat.ToString(), actionKind) 846Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1) 879Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1)
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
108string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (2)
60return descriptor.MessageFormat; 64return new LocalizableStringWithArguments(descriptor.MessageFormat, messageArgs);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
648rule.MessageFormat, memberString);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
171messageFormat = s_unusedParameterRule.MessageFormat;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\RudeEditDiagnosticDescription.cs (1)
69var format = descriptior.MessageFormat.ToString();
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\EditAndContinueDiagnosticDescriptorsTests.cs (3)
28FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.MessageFormat); 40FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.MessageFormat); 49Assert.Equal(new LocalizableResourceString(nameof(FeaturesResources.EditAndContinueDisallowedByProject), FeaturesResources.ResourceManager, typeof(FeaturesResources)), d.MessageFormat);
Microsoft.CodeAnalysis.Remote.Workspaces (1)
EditAndContinue\ManagedHotReloadLanguageService.cs (1)
305string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
Microsoft.CodeAnalysis.Test.Utilities (10)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
119""message"": """ + Descriptor1.MessageFormat + @""", 140""message"": """ + Descriptor2.MessageFormat + @""", 193""message"": """ + Descriptor1.MessageFormat + @""", 217""message"": """ + Descriptor2.MessageFormat + @""", 276""text"": """ + Descriptor1.MessageFormat + @""" 302""text"": """ + Descriptor2.MessageFormat + @""" 328""text"": """ + Descriptor1.MessageFormat + @""" 360""text"": """ + Descriptor2.MessageFormat + @"""
Diagnostics\DescriptorFactory.cs (1)
23/// - <see cref="DiagnosticDescriptor.MessageFormat"/> set to <paramref name="id"/>
Diagnostics\DiagnosticDescription.cs (1)
131_originalFormatSpecifiers = GetFormatSpecifiers(d.Descriptor.MessageFormat.ToString());
Microsoft.CodeAnalysis.UnitTests (6)
Diagnostics\DiagnosticLocalizationTests.cs (6)
54Assert.Equal(fixedMessageFormat, descriptor.MessageFormat.ToString(arCulture)); 74Assert.Equal<string>(fixedMessageFormat, descriptor.MessageFormat.ToString()); 79Assert.Equal<string>(fixedMessageFormat, descriptor.MessageFormat.ToString(CustomResourceManager.DefaultCulture)); 83Assert.Equal(localizedMessageFormat, descriptor.MessageFormat.ToString(arCulture)); 278var localizableMessage = descriptor.MessageFormat; 321unused2 = descriptors[0].MessageFormat.ToString();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
9089Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal) 9910analyzer.Descriptor.MessageFormat, 10238Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output)
Mvc.Api.Analyzers.Test (1)
ApiConventionAnalyzerIntegrationTest.cs (1)
296Assert.Equal(string.Format(CultureInfo.InvariantCulture, descriptor.MessageFormat.ToString(CultureInfo.InvariantCulture), args), diagnostic.GetMessage(CultureInfo.InvariantCulture));