Skip to main content

SyntaxExtensions.ContainsUnbalancedIfElseDirectives Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
ContainsUnbalancedIfElseDirectives(SyntaxNode, TextSpan)Returns true if the specified node contains #if directive but it does not contain related #endif directive.
ContainsUnbalancedIfElseDirectives(SyntaxNode)Returns true if the specified node contains #if directive but it does not contain related #endif directive.

ContainsUnbalancedIfElseDirectives(SyntaxNode, TextSpan)​

Returns true if the specified node contains #if directive but it does not contain related #endif directive.

public static bool ContainsUnbalancedIfElseDirectives(this Microsoft.CodeAnalysis.SyntaxNode node, Microsoft.CodeAnalysis.Text.TextSpan span)

Parameters​

node   SyntaxNode

span   TextSpan

Returns​

Boolean

ContainsUnbalancedIfElseDirectives(SyntaxNode)​

Returns true if the specified node contains #if directive but it does not contain related #endif directive.

public static bool ContainsUnbalancedIfElseDirectives(this Microsoft.CodeAnalysis.SyntaxNode node)

Parameters​

node   SyntaxNode

Returns​

Boolean