27 references to DirectiveTriviaSyntax
Microsoft.CodeAnalysis.CSharp (27)
Parser\DirectiveParser.cs (14)
145
private
DirectiveTriviaSyntax
ParseIfDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
154
private
DirectiveTriviaSyntax
ParseElifDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
182
private
DirectiveTriviaSyntax
ParseElseDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
204
private
DirectiveTriviaSyntax
ParseEndIfDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
223
private
DirectiveTriviaSyntax
ParseRegionDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
228
private
DirectiveTriviaSyntax
ParseEndRegionDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
245
private
DirectiveTriviaSyntax
ParseDefineOrUndefDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
287
private
DirectiveTriviaSyntax
ParseErrorOrWarningDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
369
private
DirectiveTriviaSyntax
ParseLineDirective(SyntaxToken hash, SyntaxToken id, bool isActive)
496
private
DirectiveTriviaSyntax
ParseReferenceDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
516
private
DirectiveTriviaSyntax
ParseLoadDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
536
private
DirectiveTriviaSyntax
ParseNullableDirective(SyntaxToken hash, SyntaxToken token, bool isActive)
564
private
DirectiveTriviaSyntax
ParsePragmaDirective(SyntaxToken hash, SyntaxToken pragma, bool isActive)
684
private
DirectiveTriviaSyntax
ParseShebangDirective(SyntaxToken hash, SyntaxToken exclamation, bool isActive)
Parser\Directives.cs (2)
19
private readonly
DirectiveTriviaSyntax
_node;
21
internal Directive(
DirectiveTriviaSyntax
node)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (6)
176
internal virtual IList<
DirectiveTriviaSyntax
> GetDirectives()
180
var list = new List<
DirectiveTriviaSyntax
>(32);
185
return SpecializedCollections.EmptyList<
DirectiveTriviaSyntax
>();
188
private static void GetDirectives(GreenNode node, List<
DirectiveTriviaSyntax
> directives)
192
var
d = node as
DirectiveTriviaSyntax
;
Syntax\SyntaxEquivalence.cs (5)
266
Green.
DirectiveTriviaSyntax
? beforeAnnotation = getNextNullableDirective(beforeDirectivesEnumerator);
267
Green.
DirectiveTriviaSyntax
? afterAnnotation = getNextNullableDirective(afterDirectivesEnumerator);
279
static Green.
DirectiveTriviaSyntax
? getNextNullableDirective(IEnumerator<Green.
DirectiveTriviaSyntax
> enumerator)
283
var
current = enumerator.Current;