57 references to DirectiveStack
Microsoft.CodeAnalysis.CSharp (57)
CSharpExtensions.cs (6)
322
internal static Syntax.InternalSyntax.
DirectiveStack
ApplyDirectives(this SyntaxNode node, Syntax.InternalSyntax.
DirectiveStack
stack)
327
internal static Syntax.InternalSyntax.
DirectiveStack
ApplyDirectives(this SyntaxToken token, Syntax.InternalSyntax.
DirectiveStack
stack)
332
internal static Syntax.InternalSyntax.
DirectiveStack
ApplyDirectives(this SyntaxNodeOrToken nodeOrToken, Syntax.InternalSyntax.
DirectiveStack
stack)
Parser\Blender.cs (6)
31
private readonly
DirectiveStack
_newDirectives;
32
private readonly
DirectiveStack
_oldDirectives;
78
_newDirectives = default(
DirectiveStack
);
79
_oldDirectives = default(
DirectiveStack
);
89
DirectiveStack
newDirectives,
90
DirectiveStack
oldDirectives,
Parser\Blender.Reader.cs (2)
22
private
DirectiveStack
_newDirectives;
23
private
DirectiveStack
_oldDirectives;
Parser\DirectiveParser.cs (2)
18
private
DirectiveStack
_context;
25
public void ReInitialize(
DirectiveStack
context)
Parser\Directives.cs (5)
120
public static readonly
DirectiveStack
Empty = new DirectiveStack(ConsList<Directive>.Empty);
129
public static void InterlockedInitialize(ref
DirectiveStack
location,
DirectiveStack
value)
226
public
DirectiveStack
Add(Directive directive)
384
public bool IncrementallyEquivalent(
DirectiveStack
other)
Parser\Lexer.cs (3)
81
private
DirectiveStack
_directives;
146
public
DirectiveStack
Directives
162
public void Reset(int position,
DirectiveStack
directives)
Parser\SyntaxParser.cs (1)
1126
internal
DirectiveStack
Directives
Syntax\CSharpSyntaxTree.cs (13)
31
private InternalSyntax.
DirectiveStack
_lazyDirectives;
42
private ImmutableArray<InternalSyntax.
DirectiveStack
> _preprocessorStates;
49
internal CSharpSyntaxTree(InternalSyntax.
DirectiveStack
directives)
159
internal InternalSyntax.
DirectiveStack
GetDirectives()
163
InternalSyntax.
DirectiveStack
.InterlockedInitialize(ref _lazyDirectives, GetRoot().CsGreen.ApplyDirectives(InternalSyntax.
DirectiveStack
.Empty));
173
var
directives = GetDirectives();
186
private bool IsPreprocessorSymbolDefined(InternalSyntax.
DirectiveStack
directives, string symbolName)
207
InternalSyntax.
DirectiveStack
directives;
219
directives = InternalSyntax.
DirectiveStack
.Empty;
232
InternalSyntax.
DirectiveStack
currentState = InternalSyntax.
DirectiveStack
.Empty;
234
var states = ArrayBuilder<InternalSyntax.
DirectiveStack
>.GetInstance();
Syntax\CSharpSyntaxTree.DebuggerSyntaxTree.cs (1)
24
directives: Syntax.InternalSyntax.
DirectiveStack
.Empty,
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
38
Syntax.InternalSyntax.
DirectiveStack
directives,
Syntax\InternalSyntax\CSharpSyntaxNode.cs (6)
137
internal virtual
DirectiveStack
ApplyDirectives(
DirectiveStack
stack)
142
internal static
DirectiveStack
ApplyDirectives(GreenNode node,
DirectiveStack
stack)
159
internal static
DirectiveStack
ApplyDirectivesToListOrNode(GreenNode listOrNode,
DirectiveStack
stack)
Syntax\InternalSyntax\DirectiveTriviaSyntax.cs (2)
15
internal override
DirectiveStack
ApplyDirectives(
DirectiveStack
stack)
Syntax\InternalSyntax\SyntaxToken.cs (4)
374
internal override
DirectiveStack
ApplyDirectives(
DirectiveStack
stack)
385
private static
DirectiveStack
ApplyDirectivesToTrivia(GreenNode triviaList,
DirectiveStack
stack)
Syntax\SyntaxTokenParser.cs (5)
53
var
startingDirectiveStack = _lexer.Directives;
67
var
startingDirectiveStack = _lexer.Directives;
82
var
startingDirectiveStack = _lexer.Directives;
138
internal readonly InternalSyntax.
DirectiveStack
ContextStartDirectiveStack;
140
internal Result(SyntaxToken token, InternalSyntax.
DirectiveStack
contextStartDirectiveStack)