예제 #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));
        }
예제 #2
0
 private bool CanSuppressExpression(SemanticModel model, ExpressionSyntax expression)
 {
     return(_analyzer.CanSuppress(model, expression));
 }