2 writes to _discriminatorStack
Microsoft.CodeAnalysis (2)
Syntax\SyntaxNode.Iterators.cs (2)
299_discriminatorStack = ArrayBuilder<Which>.GetInstance(); 305_discriminatorStack = null;
19 references to _discriminatorStack
Microsoft.CodeAnalysis (19)
Syntax\SyntaxNode.Iterators.cs (19)
300_discriminatorStack.Push(Which.Node); 309public bool IsNotEmpty { get { return _discriminatorStack?.Count > 0; } } 313Debug.Assert(_discriminatorStack is object); 314return _discriminatorStack.Peek(); 324Debug.Assert(_discriminatorStack is object); 325_discriminatorStack.Pop(); 336Debug.Assert(_discriminatorStack is object); 337_discriminatorStack.Pop(); 343Debug.Assert(_discriminatorStack is object); 345_discriminatorStack.Pop(); 353Debug.Assert(_discriminatorStack is object); 355_discriminatorStack.Push(Which.Node); 361Debug.Assert(_discriminatorStack is object); 363_discriminatorStack.Push(Which.Trivia); 368Debug.Assert(_discriminatorStack is object); 370_discriminatorStack.Push(Which.Trivia); 375Debug.Assert(_discriminatorStack is object); 378_discriminatorStack.Push(Which.Token); 386_discriminatorStack?.Free();