Example #1
0
        public override bool CanSuppress(SemanticModel model, ExpressionSyntax syntax)
        {
            var binaryExpressionSyntax = syntax as BinaryExpressionSyntax;

            return(_analyzer.CanSuppress(model, binaryExpressionSyntax.Right) &&
                   _analyzer.CanSuppress(model, binaryExpressionSyntax.Left));
        }
Example #2
0
 private bool CanSuppressExpression(SemanticModel model, ExpressionSyntax expression)
 {
     return(_analyzer.CanSuppress(model, expression));
 }