1 write to _evalStack
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
70_evalStack = ArrayBuilder<(EvalStackFrame? frameOpt, IOperation? operationOpt)>.GetInstance();
36 references to _evalStack
Microsoft.CodeAnalysis (36)
Operations\ControlFlowGraphBuilder.cs (36)
162Debug.Assert(builder._evalStack.Count == 0); 163builder._evalStack.Free(); 1405Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1414Debug.Assert(_evalStack.Count == 0 || _evalStack.Peek().frameOpt != null); 1695Debug.Assert(_startSpillingAt == _evalStack.Count); 1734_evalStack.Push((frame, operationOpt: null)); 1741int stackDepth = _evalStack.Count; 1749(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1824Debug.Assert(_startSpillingAt <= _evalStack.Count); 1832(EvalStackFrame? frameOpt, _) = _evalStack[i]; 1841for (int i = _startSpillingAt; i < _evalStack.Count; i++) 1843(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack[i]; 1871EvalStackFrame? currentFrame = _evalStack[currentFrameIndex].frameOpt; 1880for (int j = currentFrameIndex + 1; j < _evalStack.Count; j++) 1882IOperation? operation = _evalStack[j].operationOpt; 1928_evalStack[i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt)); 1938_startSpillingAt = _evalStack.Count; 1962Debug.Assert(_evalStack.Count != 0); 1963Debug.Assert(_evalStack.First().frameOpt != null); 1964Debug.Assert(_evalStack.First().operationOpt == null); 1965Debug.Assert(_startSpillingAt <= _evalStack.Count); 1967_evalStack.Push((frameOpt: null, operation)); 1972int stackDepth = _evalStack.Count; 1980(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Pop(); 1989Debug.Assert(_startSpillingAt <= _evalStack.Count); 1991(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.Peek(); 2075startingStackDepth: _evalStack.Count - (instancePushed ? 1 : 0), 2793Debug.Assert(_startSpillingAt == _evalStack.Count); 2993Debug.Assert(_evalStack.Last().frameOpt != null); 2994Debug.Assert(_startSpillingAt >= _evalStack.Count - 1); 6809int maxStackDepth = _evalStack.Count - 2; 7049Debug.Assert(_evalStack.Count > _currentInterpolatedStringHandlerCreationContext.MaximumStackDepth); 7052|| targetStackDepth >= _evalStack.Count) 7057return _evalStack[targetStackDepth].operationOpt;