50 references to MessageProvider
Microsoft.CodeAnalysis (50)
Compilation\Compilation.cs (49)
414
MetadataHelpers.CheckAssemblyOrModuleName(this.AssemblyName,
MessageProvider
,
MessageProvider
.ERR_BadAssemblyName, diagnostics);
2021
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, Location.None, ex.Message));
2026
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, Location.None, ex.Message));
2031
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, Location.None, ex.Message));
2052
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, Location.None, ex.Message));
2102
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, NoLocation.Singleton, CodeAnalysisResources.UnrecognizedResourceFileFormat));
2107
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, NoLocation.Singleton, ex.Message));
2120
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_BadWin32Resource, NoLocation.Singleton, CodeAnalysisResources.UnrecognizedResourceFileFormat));
2145
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_ResourceNotUnique, Location.None, resource.ResourceName));
2152
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_ResourceFileNameNotUnique, Location.None, fileName));
2160
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_ResourceFileNameNotUnique, Location.None, fileName));
2171
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_ResourceNotUnique, Location.None, name));
2499
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_EncodinglessSyntaxTree, tree.GetRoot().GetLocation()));
3157
options.ValidateOptions(diagnostics,
MessageProvider
, Options.Deterministic);
3171
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_ResourceInModule, Location.None));
3278
MessageProvider
,
3279
emitPeStream.GetCreateStreamFunc(
MessageProvider
, metadataDiagnostics),
3280
emitMetadataStream?.GetCreateStreamFunc(
MessageProvider
, metadataDiagnostics),
3306
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PdbWritingFailed, Location.None, ex.Message));
3311
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? ""));
3316
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_CantReadResource, Location.None, e.Message, e.InnerException?.Message ?? ""));
3321
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
3332
emitPeStream.Complete(
MessageProvider
, diagnostics) &&
3333
(emitMetadataStream?.Complete(
MessageProvider
, diagnostics) ?? true);
3457
MessageProvider
,
3483
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PdbWritingFailed, Location.None, e.Message));
3488
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PeWritingFailure, Location.None, e.InnerException?.ToString() ?? ""));
3493
diagnostics.Add(
MessageProvider
.CreateDiagnostic(
MessageProvider
.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
PEWriter\TypeNameSerializer.cs (1)
83
var messageProvider = context.Module.CommonCompilation.
MessageProvider
;