1 instantiation of Directive
Microsoft.CodeAnalysis.CSharp (1)
Syntax\InternalSyntax\DirectiveTriviaSyntax.cs (1)
17
return stack.Add(new
Directive
(this));
22 references to Directive
Microsoft.CodeAnalysis.CSharp (22)
Parser\Directives.cs (22)
34
public bool IncrementallyEquivalent(
Directive
other)
120
public static readonly DirectiveStack Empty = new DirectiveStack(ConsList<
Directive
>.Empty);
122
private readonly ConsList<
Directive
>? _directives;
124
private DirectiveStack(ConsList<
Directive
>? directives)
144
return _directives == ConsList<
Directive
>.Empty;
226
public DirectiveStack Add(
Directive
directive)
249
return new DirectiveStack(new ConsList<
Directive
>(directive, _directives ?? ConsList<
Directive
>.Empty));
254
private static ConsList<
Directive
> CompleteIf(ConsList<
Directive
> stack, out bool include)
282
newStack = new ConsList<
Directive
>(stack.Head, newStack);
292
private static ConsList<
Directive
> CompleteRegion(ConsList<
Directive
> stack)
306
newStack = new ConsList<
Directive
>(stack.Head, newStack);
310
private static ConsList<
Directive
>? GetPreviousIf(ConsList<
Directive
>? directives)
327
private static ConsList<
Directive
>? GetPreviousIfElifElseOrRegion(ConsList<
Directive
>? directives)
347
private static ConsList<
Directive
>? GetPreviousRegion(ConsList<
Directive
>? directives)
406
private static ConsList<
Directive
>? SkipInsignificantDirectives(ConsList<
Directive
>? directives)