27 references to DirectiveTriviaSyntax
Microsoft.CodeAnalysis.CSharp (27)
Parser\DirectiveParser.cs (14)
137
private
DirectiveTriviaSyntax
ParseIfDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
146
private
DirectiveTriviaSyntax
ParseElifDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
174
private
DirectiveTriviaSyntax
ParseElseDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
196
private
DirectiveTriviaSyntax
ParseEndIfDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool endIsActive)
215
private
DirectiveTriviaSyntax
ParseRegionDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
220
private
DirectiveTriviaSyntax
ParseEndRegionDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
237
private
DirectiveTriviaSyntax
ParseDefineOrUndefDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
279
private
DirectiveTriviaSyntax
ParseErrorOrWarningDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive)
361
private
DirectiveTriviaSyntax
ParseLineDirective(SyntaxToken hash, SyntaxToken id, bool isActive)
488
private
DirectiveTriviaSyntax
ParseReferenceDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
508
private
DirectiveTriviaSyntax
ParseLoadDirective(SyntaxToken hash, SyntaxToken keyword, bool isActive, bool isFollowingToken)
528
private
DirectiveTriviaSyntax
ParseNullableDirective(SyntaxToken hash, SyntaxToken token, bool isActive)
556
private
DirectiveTriviaSyntax
ParsePragmaDirective(SyntaxToken hash, SyntaxToken pragma, bool isActive)
676
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;