10 references to CreateDiagnostic
Roslyn.Diagnostics.Analyzers (10)
AbstractDoNotCopyValue.cs (2)
1570_context.ReportDiagnostic(operation.Syntax.CreateDiagnostic(AvoidNullableWrapperRule, type, operation.Kind)); 1660_context.ReportDiagnostic(node.CreateDiagnostic(UnsupportedUseRule, symbol, operationKind));
DiagnosticExtensions.cs (1)
21=> syntaxReference.GetSyntax(cancellationToken).CreateDiagnostic(rule, args);
DoNotCallGetTestAccessor.cs (4)
57context.ReportDiagnostic(memberReference.Syntax.CreateDiagnostic(DoNotCallGetTestAccessorRule)); 67context.ReportDiagnostic(invocation.Syntax.CreateDiagnostic(DoNotCallGetTestAccessorRule)); 72context.ReportDiagnostic(invocation.Syntax.CreateDiagnostic(DoNotCallGetTestAccessorRule)); 82context.ReportDiagnostic(objectCreation.Syntax.CreateDiagnostic(DoNotCallGetTestAccessorRule));
SpecializedEnumerableCreationAnalyzer.cs (3)
147addDiagnostic(name.Parent.CreateDiagnostic(UseEmptyEnumerableRule)); 155addDiagnostic(arrayCreationExpression.CreateDiagnostic(UseEmptyEnumerableRule)); 159addDiagnostic(arrayCreationExpression.CreateDiagnostic(UseSingletonEnumerableRule));