6 references to CreateDiagnostic
Roslyn.Diagnostics.Analyzers (6)
AbstractDoNotCopyValue.cs (2)
284_context.ReportDiagnostic(symbol.CreateDiagnostic(NoFieldOfCopyableTypeRule, symbol.Type, symbol)); 342_context.ReportDiagnostic(symbol.CreateDiagnostic(NoAutoPropertyRule, symbol.Type, symbol));
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (1)
107originalContext.ReportDiagnostic(field.CreateDiagnostic(Rule, field.ContainingType, sourceSymbol.Name));
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (1)
123symbolContext.ReportDiagnostic(symbolContext.Symbol.CreateDiagnostic(Rule, problematicAttribute.AttributeClass.Name, exportedType.Name));
PartsExportedWithMEFv2MustBeMarkedAsShared.cs (1)
67symbolContext.ReportDiagnostic(symbolContext.Symbol.CreateDiagnostic(Rule, namedType.Name));
TestExportsShouldNotBeDiscoverable.cs (1)
91context.ReportDiagnostic(context.Symbol.CreateDiagnostic(Rule, namedType.Name));