17 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (16)
1279
ReportDiagnostic
(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2262
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2266
ReportDiagnostic
(ErrorCode.WRN_NullReferenceArgument, location,
2284
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2445
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInAssignment, location, sourceType, destinationType);
2502
ReportDiagnostic
(ErrorCode.WRN_ConvertingNullableToNonNullable, location);
2507
ReportDiagnostic
(errorCode, syntaxNode.GetLocation(), arguments);
6648
ReportDiagnostic
(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, location);
7793
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, arg.location,
7800
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, arg.location,
7857
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, location,
7867
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, location,
8057
ReportDiagnostic
(ErrorCode.WRN_UnboxPossibleNull, diagnosticLocationOpt);
8151
ReportDiagnostic
(ErrorCode.WRN_NullableValueTypeMayBeNull, diagnosticLocationOpt);
9759
ReportDiagnostic
(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.WRN_NullabilityMismatchInArgument,
10101
ReportDiagnostic
(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());
FlowAnalysis\NullableWalker_Patterns.cs (1)
865
ReportDiagnostic
(