17 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (16)
1456
ReportDiagnostic
(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2488
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2492
ReportDiagnostic
(ErrorCode.WRN_NullReferenceArgument, location,
2510
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2671
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInAssignment, location, sourceType, destinationType);
2728
ReportDiagnostic
(ErrorCode.WRN_ConvertingNullableToNonNullable, location);
2733
ReportDiagnostic
(errorCode, syntaxNode.GetLocation(), arguments);
8291
ReportDiagnostic
(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, node.Location);
9677
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, arg.location,
9684
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, arg.location,
9748
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, location,
9758
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, location,
9971
ReportDiagnostic
(ErrorCode.WRN_UnboxPossibleNull, getDiagnosticLocation());
10080
ReportDiagnostic
(ErrorCode.WRN_NullableValueTypeMayBeNull, getDiagnosticLocation());
12072
ReportDiagnostic
(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.WRN_NullabilityMismatchInArgument,
12529
ReportDiagnostic
(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());
FlowAnalysis\NullableWalker_Patterns.cs (1)
1007
ReportDiagnostic
(