public override bool CanSuppress(SemanticModel model, ExpressionSyntax syntax) { var binaryExpressionSyntax = syntax as BinaryExpressionSyntax; return(_analyzer.CanSuppress(model, binaryExpressionSyntax.Right) && _analyzer.CanSuppress(model, binaryExpressionSyntax.Left)); }
private bool CanSuppressExpression(SemanticModel model, ExpressionSyntax expression) { return(_analyzer.CanSuppress(model, expression)); }