17 references to ContainsDirectives
Microsoft.CodeAnalysis (4)
Syntax\SyntaxNode.cs (2)
442public bool ContainsDirectives => this.Green.ContainsDirectives; 463if (current is not { ContainsDirectives: true })
Syntax\SyntaxNodeOrToken.cs (1)
489return _token.ContainsDirectives;
Syntax\SyntaxToken.cs (1)
222public bool ContainsDirectives => Node?.ContainsDirectives ?? false;
Microsoft.CodeAnalysis.CSharp (4)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (2)
165if (node.ContainsDirectives) 211if (node != null && node.ContainsDirectives)
Syntax\InternalSyntax\SyntaxToken.cs (2)
376if (this.ContainsDirectives) 387if (triviaList != null && triviaList.ContainsDirectives)
Microsoft.CodeAnalysis.VisualBasic (9)
Parser\BlockContexts\CompilationUnitContext.vb (2)
524If node Is Nothing OrElse Not node.ContainsDirectives Then 532If token Is Nothing OrElse Not token.ContainsDirectives Then
Scanner\Blender.vb (2)
452If node.ContainsDirectives AndAlso Not TypeOf node Is DirectiveTriviaSyntax Then 514If _currentNode.ContainsDirectives Then
Scanner\Directives.vb (5)
121If node.ContainsDirectives Then 129Debug.Assert(node.ContainsDirectives, "we should not be processing nodes without Directives") 147If child IsNot Nothing AndAlso child.ContainsDirectives Then 159If trivia IsNot Nothing AndAlso trivia.ContainsDirectives Then 164If trivia IsNot Nothing AndAlso trivia.ContainsDirectives Then