private void AnalyzeBinaryOperator(OperationAnalysisContext context, [NotNull] NullCheckScanner scanner) { var binaryOperator = (IBinaryOperation)context.Operation; NullCheckScanResult?scanResult = scanner.ScanBinaryOperator(binaryOperator); ReportForScanResult(scanResult, context.ReportDiagnostic); }
public override void VisitBinaryOperator([NotNull] IBinaryOperation operation) { NullCheckScanResult?scanResult = scanner.ScanBinaryOperator(operation); SetScanResult(scanResult); base.VisitBinaryOperator(operation); }