17 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker_Patterns.cs (1)
1097
ReportDiagnostic
(
FlowAnalysis\NullableWalker.cs (16)
1493
ReportDiagnostic
(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2532
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2536
ReportDiagnostic
(ErrorCode.WRN_NullReferenceArgument, location,
2554
ReportDiagnostic
(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2715
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInAssignment, location, sourceType, destinationType);
2772
ReportDiagnostic
(ErrorCode.WRN_ConvertingNullableToNonNullable, location);
2777
ReportDiagnostic
(errorCode, syntaxNode.GetLocation(), arguments);
8376
ReportDiagnostic
(ErrorCode.WRN_DisallowNullAttributeForbidsMaybeNullAssignment, node.Location);
9762
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, arg.location,
9769
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, arg.location,
9833
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInReturnTypeOfTargetDelegate, location,
9843
ReportDiagnostic
(ErrorCode.WRN_NullabilityMismatchInParameterTypeOfTargetDelegate, location,
10056
ReportDiagnostic
(ErrorCode.WRN_UnboxPossibleNull, getDiagnosticLocation());
10165
ReportDiagnostic
(ErrorCode.WRN_NullableValueTypeMayBeNull, getDiagnosticLocation());
12169
ReportDiagnostic
(forOutput ? ErrorCode.WRN_NullabilityMismatchInArgumentForOutput : ErrorCode.WRN_NullabilityMismatchInArgument,
12675
ReportDiagnostic
(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());