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); 122private readonly ConsList<Directive>? _directives; 124private DirectiveStack(ConsList<Directive>? directives) 144return _directives == ConsList<Directive>.Empty; 226public DirectiveStack Add(Directive directive) 249return new DirectiveStack(new ConsList<Directive>(directive, _directives ?? ConsList<Directive>.Empty)); 254private static ConsList<Directive> CompleteIf(ConsList<Directive> stack, out bool include) 282newStack = new ConsList<Directive>(stack.Head, newStack); 292private static ConsList<Directive> CompleteRegion(ConsList<Directive> stack) 306newStack = new ConsList<Directive>(stack.Head, newStack); 310private static ConsList<Directive>? GetPreviousIf(ConsList<Directive>? directives) 327private static ConsList<Directive>? GetPreviousIfElifElseOrRegion(ConsList<Directive>? directives) 347private static ConsList<Directive>? GetPreviousRegion(ConsList<Directive>? directives) 406private static ConsList<Directive>? SkipInsignificantDirectives(ConsList<Directive>? directives)