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