17 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (16)
1437
ReportDiagnostic
(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2451
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2455
ReportDiagnostic
(ErrorCode.WRN_NullReferenceArgument, location,
2473
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2634
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInAssignment, location, sourceType, destinationType);
2691
ReportDiagnostic
(ErrorCode.WRN_ConvertingNullableToNonNullable, location);
2696
ReportDiagnostic
(errorCode, syntaxNode.GetLocation(), arguments);
7993
ReportDiagnostic
(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, node.Location);
9290
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, arg.location,
9297
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, arg.location,
9361
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, location,
9371
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, location,
9561
ReportDiagnostic
(ErrorCode.WRN_UnboxPossibleNull, getDiagnosticLocation());
9655
ReportDiagnostic
(ErrorCode.WRN_NullableValueTypeMayBeNull, getDiagnosticLocation());
11435
ReportDiagnostic
(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.WRN_NullabilityMismatchInArgument,
11864
ReportDiagnostic
(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());
FlowAnalysis\NullableWalker_Patterns.cs (1)
907
ReportDiagnostic
(