SyntaxExtensions.ContainsUnbalancedIfElseDirectives Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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
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