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