7 references to CreateDiagnostic
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (2)
2499
diagnostics.Add(MessageProvider.
CreateDiagnostic
(MessageProvider.ERR_EncodinglessSyntaxTree, tree.GetRoot().GetLocation()));
3171
diagnostics.Add(MessageProvider.
CreateDiagnostic
(MessageProvider.ERR_ResourceInModule, Location.None));
PEWriter\MetadataWriter.cs (2)
3169
this.Context.Diagnostics.Add(this.messageProvider.
CreateDiagnostic
(this.messageProvider.ERR_TooManyUserStrings, NoLocation.Singleton));
3187
this.Context.Diagnostics.Add(this.messageProvider.
CreateDiagnostic
(this.messageProvider.ERR_TooManyUserStrings, NoLocation.Singleton));
PEWriter\TypeNameSerializer.cs (1)
84
context.Diagnostics.Add(messageProvider.
CreateDiagnostic
(
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
807
diagnostics.Add(MessageProvider.
CreateDiagnostic
(MessageProvider.ERR_MetadataReferencesNotSupported, referenceDirective.Location));
Symbols\Attributes\MarshalAsAttributeDecoder.cs (1)
277
arguments.Diagnostics.Add(messageProvider.
CreateDiagnostic
(warningCode, arguments.AttributeSyntaxOpt.GetLocation()));