1 write to _previousGeneration
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
95_previousGeneration = previousGeneration;
54 references to _previousGeneration
Microsoft.CodeAnalysis (54)
Emit\EditAndContinue\DeltaMetadataWriter.cs (54)
178var previousTableSizes = _previousGeneration.TableEntriesAdded; 189var synthesizedMembers = (_previousGeneration.Ordinal == 0) ? module.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers; 192var deletedMembers = (_previousGeneration.Ordinal == 0) ? module.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers; 194var currentGenerationOrdinal = _previousGeneration.Ordinal + 1; 197var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 206return _previousGeneration.With( 212typesAdded: AddRange(_previousGeneration.TypesAdded, addedTypes, comparer: SymbolEquivalentEqualityComparer.Instance), 213eventsAdded: AddRange(_previousGeneration.EventsAdded, _eventDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 214fieldsAdded: AddRange(_previousGeneration.FieldsAdded, _fieldDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 215methodsAdded: AddRange(_previousGeneration.MethodsAdded, _methodDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 216firstParamRowMap: AddRange(_previousGeneration.FirstParamRowMap, _firstParamRowMap), 217propertiesAdded: AddRange(_previousGeneration.PropertiesAdded, _propertyDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 218eventMapAdded: AddRange(_previousGeneration.EventMapAdded, _eventMap.GetAdded()), 219propertyMapAdded: AddRange(_previousGeneration.PropertyMapAdded, _propertyMap.GetAdded()), 220methodImplsAdded: AddRange(_previousGeneration.MethodImplsAdded, _methodImpls.GetAdded()), 221customAttributesAdded: AddRange(_previousGeneration.CustomAttributesAdded, _customAttributesAdded), 224blobStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.Blob) + _previousGeneration.BlobStreamLengthAdded, 226stringStreamLengthAdded: metadataSizes.HeapSizes[(int)HeapIndex.String] + _previousGeneration.StringStreamLengthAdded, 228userStringStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.UserString) + _previousGeneration.UserStringStreamLengthAdded, 234addedOrChangedMethods: AddRange(_previousGeneration.AddedOrChangedMethods, addedOrChangedMethodsByIndex), 235debugInformationProvider: _previousGeneration.DebugInformationProvider, 236localSignatureProvider: _previousGeneration.LocalSignatureProvider); 302get { return (ushort)(_previousGeneration.Ordinal + 1); } 312get { return _previousGeneration.EncId; } 407RoslynDebug.AssertNotNull(_previousGeneration.InitialBaseline.LazyMetadataSymbols); 408identity = _previousGeneration.InitialBaseline.LazyMetadataSymbols.AssemblyReferenceIdentityMap[identity.WithVersion(versionPattern)]; 750if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle)) 774var def = _previousGeneration.OriginalMetadata.MetadataReader.GetMethodDefinition(handle); 791var ok = _previousGeneration.FirstParamRowMap.TryGetValue(handle, out var firstRowId); 944int lastCustomAttributeRowId = _previousGeneration.CustomAttributesAdded.Count > 0 945? _previousGeneration.CustomAttributesAdded.Max(static entry => entry.Value[^1]) 946: _previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.CustomAttribute); 963int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault()); 964int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault()); 980xOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(x.parentHandle, out var rowIds) ? rowIds[0] : int.MaxValue; 981yOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(y.parentHandle, out rowIds) ? rowIds[0] : int.MaxValue; 999var originalCustomAttributes = _previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(parentHandle); 1014var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1038var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1088var previousSizes = _previousGeneration.TableSizes; 1245var previousSizes = _previousGeneration.TableSizes; 1606if (_previousGeneration.TypesAdded.TryGetValue(item, out index)) 1618if (_previousGeneration.EventsAdded.TryGetValue(item, out index)) 1630if (_previousGeneration.FieldsAdded.TryGetValue(item, out index)) 1649if (_previousGeneration.MethodsAdded.TryGetValue(item, out index)) 1661if (_previousGeneration.PropertiesAdded.TryGetValue(item, out index)) 1678if (_previousGeneration.EventMapAdded.TryGetValue(item, out index)) 1683if (_previousGeneration.TypeToEventMap.TryGetValue(item, out index)) 1694if (_previousGeneration.PropertyMapAdded.TryGetValue(item, out index)) 1699if (_previousGeneration.TypeToPropertyMap.TryGetValue(item, out index)) 1710if (_previousGeneration.MethodImplsAdded.TryGetValue(item, out index)) 1715if (_previousGeneration.MethodImpls.TryGetValue(item, out index))