79 references to CommonMessageProvider
Microsoft.CodeAnalysis (79)
CommandLine\CommandLineArguments.cs (4)
390internal IEnumerable<MetadataReference> ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 400internal virtual bool ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt, List<MetadataReference> resolved) 425internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 473CommonMessageProvider messageProvider,
CommandLine\CommandLineParser.cs (3)
22private readonly CommonMessageProvider _messageProvider; 27internal CommandLineParser(CommonMessageProvider messageProvider, bool isScriptCommandLineParser) 34internal CommonMessageProvider MessageProvider
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (2)
43var messageProvider = _compiler.MessageProvider; 117var messageProvider = _compiler.MessageProvider;
CommandLine\CommonCompiler.cs (9)
76public CommonMessageProvider MessageProvider { get; } 119CommonMessageProvider messageProvider, 505internal static DiagnosticInfo ToFileReadDiagnostics(CommonMessageProvider messageProvider, Exception e, string filePath) 1598protected virtual ImmutableArray<AdditionalTextFile> ResolveAdditionalFilesFromArguments(List<DiagnosticInfo> diagnostics, CommonMessageProvider messageProvider, TouchedFileLogger? touchedFilesLogger) 1641CommonMessageProvider messageProvider, 1654CommonMessageProvider messageProvider, 1682private static Stream? OpenManifestStream(ICommonCompilerFileSystem fileSystem, CommonMessageProvider messageProvider, OutputKind outputKind, CommandLineArguments arguments, DiagnosticBag diagnostics) 1689private static Stream? OpenStream(ICommonCompilerFileSystem fileSystem, CommonMessageProvider messageProvider, string? path, string? baseDirectory, int errorCode, DiagnosticBag diagnostics) 1714private static string? ResolveRelativePath(CommonMessageProvider messageProvider, string path, string? baseDirectory, DiagnosticBag diagnostics)
CommandLine\NoThrowStreamDisposer.cs (2)
22private readonly CommonMessageProvider _messageProvider; 45CommonMessageProvider messageProvider)
Compilation.EmitStream.cs (3)
68internal Func<Stream?> GetCreateStreamFunc(CommonMessageProvider messageProvider, DiagnosticBag diagnostics) 105private Stream? CreateStream(CommonMessageProvider messageProvider, DiagnosticBag diagnostics) 166internal bool Complete(CommonMessageProvider messageProvider, DiagnosticBag diagnostics)
Compilation\CommonSyntaxAndDeclarationManager.cs (2)
14internal readonly CommonMessageProvider MessageProvider; 21CommonMessageProvider messageProvider,
Compilation\Compilation.cs (2)
1852internal abstract CommonMessageProvider MessageProvider { get; } 3360CommonMessageProvider messageProvider,
Compilation\CompilationOptions.cs (1)
564internal void ValidateOptions(ArrayBuilder<Diagnostic> builder, CommonMessageProvider messageProvider)
Compilation\ParseOptions.cs (1)
79internal void ValidateOptions(ArrayBuilder<Diagnostic> builder, CommonMessageProvider messageProvider)
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
15internal CustomObsoleteDiagnosticInfo(CommonMessageProvider messageProvider, int errorCode, ObsoleteAttributeData data, params object[] arguments)
Diagnostic\Diagnostic.cs (2)
280internal static Diagnostic Create(CommonMessageProvider messageProvider, int errorCode) 285internal static Diagnostic Create(CommonMessageProvider messageProvider, int errorCode, params object[] arguments)
Diagnostic\DiagnosticInfo.cs (9)
27private readonly CommonMessageProvider _messageProvider; 40internal DiagnosticInfo(CommonMessageProvider messageProvider, int errorCode) 46internal DiagnosticInfo(CommonMessageProvider messageProvider, int errorCode, params object[] arguments) 68internal static DiagnosticDescriptor GetDescriptor(int errorCode, CommonMessageProvider messageProvider) 74private static DiagnosticDescriptor GetOrCreateDescriptor(int errorCode, DiagnosticSeverity defaultSeverity, CommonMessageProvider messageProvider) 83private static DiagnosticDescriptor CreateDescriptor(int errorCode, DiagnosticSeverity defaultSeverity, CommonMessageProvider messageProvider) 125private static void AssertExpectedMessageArgumentsLength(CommonMessageProvider messageProvider, int errorCode, int actualLength) 151internal DiagnosticInfo(CommonMessageProvider messageProvider, bool isWarningAsError, int errorCode, params object[] arguments) 372internal CommonMessageProvider MessageProvider
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (2)
18protected abstract CommonMessageProvider MessageProvider { get; } 28var messageProvider = @this.MessageProvider;
Emit\EditAndContinue\DefinitionMap.cs (1)
132internal abstract CommonMessageProvider MessageProvider { get; }
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
73CommonMessageProvider messageProvider,
Emit\EmitOptions.cs (1)
332internal void ValidateOptions(DiagnosticBag diagnostics, CommonMessageProvider messageProvider, bool isDeterministic)
MetadataReader\MetadataHelpers.cs (2)
968internal static void CheckAssemblyOrModuleName(string name, CommonMessageProvider messageProvider, int code, DiagnosticBag diagnostics) 979internal static void CheckAssemblyOrModuleName(string name, CommonMessageProvider messageProvider, int code, ArrayBuilder<Diagnostic> builder)
MetadataReference\PortableExecutableReference.cs (1)
186internal static Diagnostic ExceptionToDiagnostic(Exception e, CommonMessageProvider messageProvider, Location location, string display, MetadataImageKind kind)
PEWriter\FullMetadataWriter.cs (2)
42CommonMessageProvider messageProvider, 79CommonMessageProvider messageProvider,
PEWriter\MetadataWriter.cs (2)
99CommonMessageProvider messageProvider, 416protected readonly CommonMessageProvider messageProvider;
PEWriter\PeWriter.cs (1)
82CommonMessageProvider messageProvider,
PEWriter\TypeNameSerializer.cs (1)
83var messageProvider = context.Module.CommonCompilation.MessageProvider;
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
31protected abstract CommonMessageProvider MessageProvider { get; } 475private Metadata? GetMetadata(PortableExecutableReference peReference, CommonMessageProvider messageProvider, Location location, DiagnosticBag diagnostics)
RuleSet\RuleSet.cs (2)
288internal static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? rulesetFileFullPath, out Dictionary<string, ReportDiagnostic> diagnosticOptions, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 299private static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(Dictionary<string, ReportDiagnostic> diagnosticOptions, string resolvedPath, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
SourceGeneration\GeneratorDriver.cs (4)
339static bool handleGeneratorException(Compilation compilation, CommonMessageProvider messageProvider, ISourceGenerator sourceGenerator, Exception e, bool isInit) 381private static GeneratorState SetGeneratorException(Compilation compilation, CommonMessageProvider provider, GeneratorState generatorState, ISourceGenerator generator, Exception e, DiagnosticBag? diagnosticBag, CancellationToken cancellationToken, TimeSpan? runTime = null, bool isInit = false) 399private static Diagnostic CreateGeneratorExceptionDiagnostic(CommonMessageProvider provider, ISourceGenerator generator, Exception e, bool isInit) 457internal abstract CommonMessageProvider MessageProvider { get; }
StrongName\DesktopStrongNameProvider.cs (1)
65internal override StrongNameKeys CreateKeys(string? keyFilePath, string? keyContainerName, bool hasCounterSignature, CommonMessageProvider messageProvider)
StrongName\StrongNameKeys.cs (6)
88internal static StrongNameKeys Create(ImmutableArray<byte> publicKey, RSAParameters? privateKey, bool hasCounterSignature, CommonMessageProvider messageProvider) 103internal static StrongNameKeys Create(string? keyFilePath, CommonMessageProvider messageProvider) 166internal static StrongNameKeys Create(StrongNameProvider? providerOpt, string? keyFilePath, string? keyContainerName, bool hasCounterSignature, CommonMessageProvider messageProvider) 204internal static Diagnostic GetError(string? keyFilePath, string? keyContainerName, object message, CommonMessageProvider messageProvider) 217internal static Diagnostic GetContainerError(CommonMessageProvider messageProvider, string name, object message) 222internal static Diagnostic GetKeyFileError(CommonMessageProvider messageProvider, string path, object message)
StrongName\StrongNameProvider.cs (1)
38internal abstract StrongNameKeys CreateKeys(string? keyFilePath, string? keyContainerName, bool hasCounterSignature, CommonMessageProvider messageProvider);
Symbols\Attributes\CommonAttributeData.cs (2)
401CommonMessageProvider messageProvider) 462CommonMessageProvider messageProvider)
Symbols\Attributes\MarshalAsAttributeDecoder.cs (6)
20internal static void Decode(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, AttributeTargets target, CommonMessageProvider messageProvider) 114private static void DecodeMarshalAsCustom(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider) 174private static void DecodeMarshalAsComInterface(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, UnmanagedType unmanagedType, CommonMessageProvider messageProvider) 207private static void DecodeMarshalAsArray(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider, bool isFixed) 296private static void DecodeMarshalAsSafeArray(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider) 366private static void DecodeMarshalAsFixedString(ref DecodeWellKnownAttributeArguments<TAttributeSyntax, TAttributeData, TAttributeLocation> arguments, CommonMessageProvider messageProvider)