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);
309
public bool IsNotEmpty { get { return
_discriminatorStack
?.Count > 0; } }
313
Debug.Assert(
_discriminatorStack
is object);
314
return
_discriminatorStack
.Peek();
324
Debug.Assert(
_discriminatorStack
is object);
325
_discriminatorStack
.Pop();
336
Debug.Assert(
_discriminatorStack
is object);
337
_discriminatorStack
.Pop();
343
Debug.Assert(
_discriminatorStack
is object);
345
_discriminatorStack
.Pop();
353
Debug.Assert(
_discriminatorStack
is object);
355
_discriminatorStack
.Push(Which.Node);
361
Debug.Assert(
_discriminatorStack
is object);
363
_discriminatorStack
.Push(Which.Trivia);
368
Debug.Assert(
_discriminatorStack
is object);
370
_discriminatorStack
.Push(Which.Trivia);
375
Debug.Assert(
_discriminatorStack
is object);
378
_discriminatorStack
.Push(Which.Token);
386
_discriminatorStack
?.Free();