13 references to Last
Microsoft.CodeAnalysis (13)
NativePdbWriter\PdbWriter.cs (1)
476
LocalScope topScope = scopeStack.
Last
();
Operations\ControlFlowBranch.cs (1)
150
Debug.Assert(builder.
Last
().Kind == ControlFlowRegionKind.Finally);
Operations\ControlFlowGraphBuilder.cs (5)
764
Debug.Assert(tryAndFinally.Regions.
Last
() == currentRegion);
1302
BasicBlockBuilder prevBlock = _blocks.
Last
();
2983
Debug.Assert(_evalStack.
Last
().frameOpt != null);
7448
if (children.Count != 0 && children.
Last
().Kind == OperationKind.ObjectOrCollectionInitializer)
7455
var initializer = (IObjectOrCollectionInitializerOperation)children.
Last
();
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (4)
142
ControlFlowRegionKind lastKind = Regions.
Last
().Kind;
205
Debug.Assert(toReplace.LastBlock!.Ordinal >= replaceWith.
Last
().LastBlock!.Ordinal);
254
Regions!.
Last
().LastBlock == block);
274
Debug.Assert(!HasRegions || Regions.
Last
().LastBlock!.Ordinal <= block.Ordinal);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
338
=> Count == 0 ? default :
Last
();
Text\SourceText.cs (1)
777
if (change.Span.End <= changeRanges.
Last
().Span.Start)