17 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker_Patterns.cs (1)
1097
ReportDiagnostic
(
FlowAnalysis\NullableWalker.cs (16)
1456
ReportDiagnostic
(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2476
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2480
ReportDiagnostic
(ErrorCode.WRN_NullReferenceArgument, location,
2498
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2659
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInAssignment, location, sourceType, destinationType);
2716
ReportDiagnostic
(ErrorCode.WRN_ConvertingNullableToNonNullable, location);
2721
ReportDiagnostic
(errorCode, syntaxNode.GetLocation(), arguments);
8304
ReportDiagnostic
(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, node.Location);
9690
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, arg.location,
9697
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, arg.location,
9761
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, location,
9771
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, location,
9984
ReportDiagnostic
(ErrorCode.WRN_UnboxPossibleNull, getDiagnosticLocation());
10093
ReportDiagnostic
(ErrorCode.WRN_NullableValueTypeMayBeNull, getDiagnosticLocation());
12090
ReportDiagnostic
(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.WRN_NullabilityMismatchInArgument,
12587
ReportDiagnostic
(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());