2 writes to _discriminatorStack
Microsoft.CodeAnalysis (2)
Syntax\SyntaxNode.Iterators.cs (2)
205
_discriminatorStack
= ArrayBuilder<Which>.GetInstance();
210
_discriminatorStack
= null;
15 references to _discriminatorStack
Microsoft.CodeAnalysis (15)
Syntax\SyntaxNode.Iterators.cs (15)
206
_discriminatorStack
.Push(Which.Node);
214
public bool IsNotEmpty { get { return
_discriminatorStack
?.Count > 0; } }
218
Debug.Assert(
_discriminatorStack
is object);
219
return
_discriminatorStack
.Peek();
229
Debug.Assert(
_discriminatorStack
is object);
230
_discriminatorStack
.Pop();
241
Debug.Assert(
_discriminatorStack
is object);
242
_discriminatorStack
.Pop();
250
Debug.Assert(
_discriminatorStack
is object);
252
_discriminatorStack
.Push(Which.Node);
258
Debug.Assert(
_discriminatorStack
is object);
260
_discriminatorStack
.Push(Which.Trivia);
265
Debug.Assert(
_discriminatorStack
is object);
267
_discriminatorStack
.Push(Which.Trivia);
274
_discriminatorStack
?.Free();