private void AnalyzeBinaryOperator(OperationAnalysisContext context, [NotNull] NullCheckScanner scanner)
        {
            var binaryOperator = (IBinaryOperation)context.Operation;

            NullCheckScanResult?scanResult = scanner.ScanBinaryOperator(binaryOperator);

            ReportForScanResult(scanResult, context.ReportDiagnostic);
        }
예제 #2
0
            public override void VisitBinaryOperator([NotNull] IBinaryOperation operation)
            {
                NullCheckScanResult?scanResult = scanner.ScanBinaryOperator(operation);

                SetScanResult(scanResult);

                base.VisitBinaryOperator(operation);
            }