24 references to Peek
Microsoft.CodeAnalysis (9)
CodeGen\SwitchIntegralJumpTableEmitter.cs (1)
207
SwitchBucket prevBucket = switchBucketsStack.
Peek
();
Operations\ControlFlowGraphBuilder.cs (5)
1237
Debug.Assert(stackDepth == 0 || _evalStack.
Peek
().frameOpt != null);
1252
Debug.Assert(stackDepth == 0 || _evalStack.
Peek
().frameOpt != null);
1396
Debug.Assert(_evalStack.Count == 0 || _evalStack.
Peek
().frameOpt != null);
1405
Debug.Assert(_evalStack.Count == 0 || _evalStack.
Peek
().frameOpt != null);
1981
(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack.
Peek
();
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
931
var e =
Peek
();
Syntax\SyntaxNode.Iterators.cs (2)
219
return _discriminatorStack.
Peek
();
314
return _discriminatorStack.
Peek
();
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Operators.cs (1)
1268
Debug.Assert(stack.Count > 0 && stack.
Peek
().Left is BoundUnconvertedInterpolatedString);
Binder\DecisionDagBuilder_CheckOrReachability.cs (2)
750
inputType = stack.
Peek
().InputType;
754
inputType = stack.
Peek
().NarrowedType;
BoundTree\NullabilityRewriter.cs (2)
88
var leftChild = (BoundExpression)Visit(stack.
Peek
().Left);
152
var leftChild = (BoundPattern)Visit(stack.
Peek
().Left);
CodeGen\EmitArrayInitializer.cs (1)
172
var top = indices.
Peek
();
FlowAnalysis\AbstractFlowPass.cs (4)
998
Debug.Assert(binaryPatterns.
Peek
().Left is not BoundBinaryPattern);
999
bool currentPatternMatchesNull = patternMatchesNull(binaryPatterns.
Peek
().Left);
1039
Debug.Assert(binaryPatterns.
Peek
().Left is not BoundBinaryPattern);
1040
bool? currentBoolTest = isBoolTest(binaryPatterns.
Peek
().Left);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
524
_labelsInScope.
Peek
().Add(node.Label);
734
foreach (var label in _labelsInScope.
Peek
())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
154
BoundExpression loweredLeft = VisitExpression(stack.
Peek
().Left);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
597
BoundExpression currentResult = VisitExpression(stack.
Peek
().Left);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (1)
73
NamedTypeSymbol tuple8Type = underlyingTupleTypeChain.
Peek
();