1 instantiation of Directive
Microsoft.CodeAnalysis.CSharp (1)
Syntax\InternalSyntax\DirectiveTriviaSyntax.cs (1)
17return stack.Add(new Directive(this));
22 references to Directive
Microsoft.CodeAnalysis.CSharp (22)
Parser\Directives.cs (22)
34public bool IncrementallyEquivalent(Directive other) 120public static readonly DirectiveStack Empty = new DirectiveStack(ConsList<Directive>.Empty, seenAnyIfDirectives: false); 122private readonly ConsList<Directive>? _directives; 125private DirectiveStack(ConsList<Directive>? directives, bool seenAnyIfDirectives) 146return _directives == ConsList<Directive>.Empty; 230public DirectiveStack Add(Directive directive) 253return new DirectiveStack(new ConsList<Directive>(directive, _directives ?? ConsList<Directive>.Empty), 259private static ConsList<Directive> CompleteIf(ConsList<Directive> stack, out bool include) 287newStack = new ConsList<Directive>(stack.Head, newStack); 297private static ConsList<Directive> CompleteRegion(ConsList<Directive> stack) 311newStack = new ConsList<Directive>(stack.Head, newStack); 315private static ConsList<Directive>? GetPreviousIf(ConsList<Directive>? directives) 332private static ConsList<Directive>? GetPreviousIfElifElseOrRegion(ConsList<Directive>? directives) 352private static ConsList<Directive>? GetPreviousRegion(ConsList<Directive>? directives) 411private static ConsList<Directive>? SkipInsignificantDirectives(ConsList<Directive>? directives)