12 references to ContainsDirectives
Microsoft.CodeAnalysis (6)
Syntax\SyntaxNode.cs (2)
444public bool ContainsDirectives => this.Green.ContainsDirectives; 467if (current is not { ContainsDirectives: true })
Syntax\SyntaxNodeOrToken.cs (3)
490return _token.ContainsDirectives; 855if (node._token.ContainsDirectives) 872foreach (var trivia in node.DescendantTrivia(descendIntoChildrenGreen: static node => node.ContainsDirectives, descendIntoChildrenRed: null, descendIntoTrivia: true))
Syntax\SyntaxToken.cs (1)
220public bool ContainsDirectives => Node?.ContainsDirectives ?? false;
Microsoft.CodeAnalysis.CSharp (6)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (3)
145if (node.ContainsDirectives) 179if (this.ContainsDirectives) 191if (node != null && node.ContainsDirectives)
Syntax\InternalSyntax\SyntaxToken.cs (2)
376if (this.ContainsDirectives) 387if (triviaList != null && triviaList.ContainsDirectives)
Syntax\SyntaxNodeRemover.cs (1)
434var directivesInSpan = node.DescendantTrivia(span, descendIntoChildrenGreen: static n => n.ContainsDirectives, descendIntoChildrenRed: null, descendIntoTrivia: true)