1 write to _previousGeneration
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
92_previousGeneration = previousGeneration;
54 references to _previousGeneration
Microsoft.CodeAnalysis (54)
Emit\EditAndContinue\DeltaMetadataWriter.cs (54)
188var previousTableSizes = _previousGeneration.TableEntriesAdded; 199var synthesizedMembers = (_previousGeneration.Ordinal == 0) ? module.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers; 202var deletedMembers = (_previousGeneration.Ordinal == 0) ? module.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers; 204var currentGenerationOrdinal = _previousGeneration.Ordinal + 1; 207var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 216return _previousGeneration.With( 222typesAdded: AddRange(_previousGeneration.TypesAdded, addedTypes, comparer: SymbolEquivalentEqualityComparer.Instance), 223eventsAdded: AddRange(_previousGeneration.EventsAdded, _eventDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 224fieldsAdded: AddRange(_previousGeneration.FieldsAdded, _fieldDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 225methodsAdded: AddRange(_previousGeneration.MethodsAdded, _methodDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 226firstParamRowMap: AddRange(_previousGeneration.FirstParamRowMap, _firstParamRowMap), 227propertiesAdded: AddRange(_previousGeneration.PropertiesAdded, _propertyDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 228eventMapAdded: AddRange(_previousGeneration.EventMapAdded, _eventMap.GetAdded()), 229propertyMapAdded: AddRange(_previousGeneration.PropertyMapAdded, _propertyMap.GetAdded()), 230methodImplsAdded: AddRange(_previousGeneration.MethodImplsAdded, _methodImpls.GetAdded()), 231customAttributesAdded: AddRange(_previousGeneration.CustomAttributesAdded, _customAttributesAdded), 234blobStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.Blob) + _previousGeneration.BlobStreamLengthAdded, 236stringStreamLengthAdded: metadataSizes.HeapSizes[(int)HeapIndex.String] + _previousGeneration.StringStreamLengthAdded, 238userStringStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.UserString) + _previousGeneration.UserStringStreamLengthAdded, 244addedOrChangedMethods: AddRange(_previousGeneration.AddedOrChangedMethods, addedOrChangedMethodsByIndex), 245debugInformationProvider: _previousGeneration.DebugInformationProvider, 246localSignatureProvider: _previousGeneration.LocalSignatureProvider); 312get { return (ushort)(_previousGeneration.Ordinal + 1); } 322get { return _previousGeneration.EncId; } 417RoslynDebug.AssertNotNull(_previousGeneration.InitialBaseline.LazyMetadataSymbols); 418identity = _previousGeneration.InitialBaseline.LazyMetadataSymbols.AssemblyReferenceIdentityMap[identity.WithVersion(versionPattern)]; 762if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle)) 786var def = _previousGeneration.OriginalMetadata.MetadataReader.GetMethodDefinition(handle); 803var ok = _previousGeneration.FirstParamRowMap.TryGetValue(handle, out var firstRowId); 956int lastCustomAttributeRowId = _previousGeneration.CustomAttributesAdded.Count > 0 957? _previousGeneration.CustomAttributesAdded.Max(static entry => entry.Value[^1]) 958: _previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.CustomAttribute); 975int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault()); 976int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault()); 992xOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(x.parentHandle, out var rowIds) ? rowIds[0] : int.MaxValue; 993yOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(y.parentHandle, out rowIds) ? rowIds[0] : int.MaxValue; 1011var originalCustomAttributes = _previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(parentHandle); 1026var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1050var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1100var previousSizes = _previousGeneration.TableSizes; 1257var previousSizes = _previousGeneration.TableSizes; 1616if (_previousGeneration.TypesAdded.TryGetValue(item, out index)) 1628if (_previousGeneration.EventsAdded.TryGetValue(item, out index)) 1640if (_previousGeneration.FieldsAdded.TryGetValue(item, out index)) 1659if (_previousGeneration.MethodsAdded.TryGetValue(item, out index)) 1671if (_previousGeneration.PropertiesAdded.TryGetValue(item, out index)) 1688if (_previousGeneration.EventMapAdded.TryGetValue(item, out index)) 1693if (_previousGeneration.TypeToEventMap.TryGetValue(item, out index)) 1704if (_previousGeneration.PropertyMapAdded.TryGetValue(item, out index)) 1709if (_previousGeneration.TypeToPropertyMap.TryGetValue(item, out index)) 1720if (_previousGeneration.MethodImplsAdded.TryGetValue(item, out index)) 1725if (_previousGeneration.MethodImpls.TryGetValue(item, out index))