Skip to main content

SyntaxInverter.LogicallyInvert Method

Containing Type: SyntaxInverter

Assembly: Roslynator.CSharp.Workspaces.dll

Overloads

MethodSummary
LogicallyInvert(ExpressionSyntax, CancellationToken)Returns new expression that represents logical inversion of the specified expression.
LogicallyInvert(ExpressionSyntax, SemanticModel, CancellationToken)Returns new expression that represents logical inversion of the specified expression.

LogicallyInvert(ExpressionSyntax, CancellationToken)

Returns new expression that represents logical inversion of the specified expression.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax LogicallyInvert(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, System.Threading.CancellationToken cancellationToken = default)

Parameters

expression ExpressionSyntax

cancellationToken CancellationToken

Returns

ExpressionSyntax

LogicallyInvert(ExpressionSyntax, SemanticModel, CancellationToken)

Returns new expression that represents logical inversion of the specified expression.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax LogicallyInvert(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SemanticModel semanticModel, System.Threading.CancellationToken cancellationToken = default)

Parameters

expression ExpressionSyntax

semanticModel SemanticModel

cancellationToken CancellationToken

Returns

ExpressionSyntax