private void AnalyzeInvocation(OperationAnalysisContext context, [NotNull] NullCheckScanner scanner) { var invocation = (IInvocationOperation)context.Operation; NullCheckScanResult?scanResult = scanner.ScanInvocation(invocation); ReportForScanResult(scanResult, context.ReportDiagnostic); }
public override void VisitInvocation([NotNull] IInvocationOperation operation) { NullCheckScanResult?scanResult = scanner.ScanInvocation(operation); SetScanResult(scanResult); base.VisitInvocation(operation); }