1 write to MessageFormat
Microsoft.CodeAnalysis (1)
Diagnostic\DiagnosticDescriptor.cs (1)
177this.MessageFormat = messageFormat;
64 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)
100messageFormat: baseDescriptor.MessageFormat,
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
94return _descriptor.MessageFormat.ToString(formatProvider); 97var localizedMessageFormat = _descriptor.MessageFormat.ToString(formatProvider);
Diagnostic\DiagnosticDescriptor.cs (3)
200this.MessageFormat.Equals(other.MessageFormat) && 217Hash.Combine(this.MessageFormat.GetHashCode(),
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
318ForceLocalizableStringExceptions(descriptor.MessageFormat, handler);
Microsoft.CodeAnalysis.CodeStyle (4)
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
496var messageFormat = rule.MessageFormat;
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
179messageFormat = s_unusedParameterRule.MessageFormat;
DiagnosticHelper.cs (2)
54message = descriptor.MessageFormat; 58message = new LocalizableStringWithArguments(descriptor.MessageFormat, messageArgs);
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
109Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
CodeFixVerifierHelper.cs (1)
68Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
9426Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal); 12448analyzer.Descriptor.MessageFormat, 12808Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", outWriter.ToString()); 13040Assert.Contains($"{prefix} {descriptor.Id}: {descriptor.MessageFormat}", outWriter.ToString()); 13162Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output);
Microsoft.CodeAnalysis.CSharp.Features (1)
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
159descriptor.MessageFormat.ToStringOrNull() ??
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
CodeActions\CodeFixVerifierHelper.cs (1)
68Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Diagnostics\AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
109Assert.NotEqual("", descriptor.MessageFormat?.ToString() ?? "");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
EditAndContinue\RudeEditDiagnosticDescription.cs (1)
63var format = descriptior.MessageFormat.ToString();
Microsoft.CodeAnalysis.EditorFeatures.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.EditorFeatures2.UnitTests (4)
Diagnostics\DiagnosticProviderTests.vb (1)
253Message=<%= NoCompilationDocumentDiagnosticAnalyzer.Descriptor.MessageFormat.ToString() %>/>
Diagnostics\DiagnosticServiceTests.vb (3)
641Dim expectedMessage = String.Format(OperationAnalyzer.Descriptor.MessageFormat.ToString(), actionKind) 876Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1) 908Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1)
Microsoft.CodeAnalysis.Features (6)
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
496var messageFormat = rule.MessageFormat;
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
179messageFormat = s_unusedParameterRule.MessageFormat;
DiagnosticHelper.cs (2)
54message = descriptor.MessageFormat; 58message = new LocalizableStringWithArguments(descriptor.MessageFormat, messageArgs);
EditAndContinue\EmitSolutionUpdateResults.cs (1)
204string.Format(descriptor.MessageFormat.ToString(CultureInfo.CurrentUICulture), diagnostic.Arguments),
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
154string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
Microsoft.CodeAnalysis.Test.Utilities (10)
Diagnostics\CommonDiagnosticAnalyzers.cs (8)
114""message"": """ + Descriptor1.MessageFormat + @""", 135""message"": """ + Descriptor2.MessageFormat + @""", 188""message"": """ + Descriptor1.MessageFormat + @""", 212""message"": """ + Descriptor2.MessageFormat + @""", 267""text"": """ + Descriptor1.MessageFormat + @""" 293""text"": """ + Descriptor2.MessageFormat + @""" 319""text"": """ + Descriptor1.MessageFormat + @""" 351""text"": """ + Descriptor2.MessageFormat + @"""
Diagnostics\DescriptorFactory.cs (1)
23/// - <see cref="DiagnosticDescriptor.MessageFormat"/> set to <paramref name="id"/>
Diagnostics\DiagnosticDescription.cs (1)
130_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; 314unused2 = descriptors[0].MessageFormat.ToString();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
8971Assert.Contains(AnalyzerThatThrowsInGetMessage.Rule.MessageFormat.ToString(CultureInfo.InvariantCulture), output, StringComparison.Ordinal) 9792analyzer.Descriptor.MessageFormat, 10116Assert.Contains($"{prefix} {diagnosticId}: {analyzer.Descriptor.MessageFormat}", output)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Parser\ParseDirectives.vb (2)
3214Dim expectedMsg = analyzer.SupportedDiagnostics.Single.MessageFormat 3321Dim expectedMsg = analyzer.SupportedDiagnostics.Single.MessageFormat
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DiagnosticAnalyzerInfoCache.cs (1)
155if (descriptor.WithMessageFormat(existingDescriptor.MessageFormat).Equals(existingDescriptor))
Microsoft.VisualStudio.LanguageServices.Implementation (3)
SolutionExplorer\DiagnosticItem\BaseDiagnosticAndGeneratorItemSource.DiagnosticDescriptorComparer.cs (2)
30comparison = StringComparer.CurrentCulture.Compare(x.MessageFormat.ToString(CultureInfo.CurrentUICulture), y.MessageFormat.ToString(CultureInfo.CurrentUICulture));
SolutionExplorer\DiagnosticItem\DiagnosticItem.BrowseObject.cs (1)
94return _diagnosticItem.Descriptor.MessageFormat.ToString(CultureInfo.CurrentUICulture);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (1)
516message:=analyzer.Descriptor.MessageFormat.ToString(),