1 write to _previousGeneration
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
99_previousGeneration = previousGeneration;
54 references to _previousGeneration
Microsoft.CodeAnalysis (54)
Emit\EditAndContinue\DeltaMetadataWriter.cs (54)
182var previousTableSizes = _previousGeneration.TableEntriesAdded; 193var synthesizedMembers = (_previousGeneration.Ordinal == 0) ? module.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers; 196var deletedMembers = (_previousGeneration.Ordinal == 0) ? module.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers; 198var currentGenerationOrdinal = _previousGeneration.Ordinal + 1; 201var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 210return _previousGeneration.With( 216typesAdded: AddRange(_previousGeneration.TypesAdded, addedTypes, comparer: SymbolEquivalentEqualityComparer.Instance), 217eventsAdded: AddRange(_previousGeneration.EventsAdded, _eventDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 218fieldsAdded: AddRange(_previousGeneration.FieldsAdded, _fieldDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 219methodsAdded: AddRange(_previousGeneration.MethodsAdded, _methodDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 220firstParamRowMap: AddRange(_previousGeneration.FirstParamRowMap, _firstParamRowMap), 221propertiesAdded: AddRange(_previousGeneration.PropertiesAdded, _propertyDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 222eventMapAdded: AddRange(_previousGeneration.EventMapAdded, _eventMap.GetAdded()), 223propertyMapAdded: AddRange(_previousGeneration.PropertyMapAdded, _propertyMap.GetAdded()), 224methodImplsAdded: AddRange(_previousGeneration.MethodImplsAdded, _methodImpls.GetAdded()), 225customAttributesAdded: AddRange(_previousGeneration.CustomAttributesAdded, _customAttributesAdded), 228blobStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.Blob) + _previousGeneration.BlobStreamLengthAdded, 230stringStreamLengthAdded: metadataSizes.HeapSizes[(int)HeapIndex.String] + _previousGeneration.StringStreamLengthAdded, 232userStringStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.UserString) + _previousGeneration.UserStringStreamLengthAdded, 238addedOrChangedMethods: AddRange(_previousGeneration.AddedOrChangedMethods, addedOrChangedMethodsByIndex), 239debugInformationProvider: _previousGeneration.DebugInformationProvider, 240localSignatureProvider: _previousGeneration.LocalSignatureProvider); 306get { return (ushort)(_previousGeneration.Ordinal + 1); } 316get { return _previousGeneration.EncId; } 411RoslynDebug.AssertNotNull(_previousGeneration.InitialBaseline.LazyMetadataSymbols); 412identity = _previousGeneration.InitialBaseline.LazyMetadataSymbols.AssemblyReferenceIdentityMap[identity.WithVersion(versionPattern)]; 721if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle)) 745var def = _previousGeneration.OriginalMetadata.MetadataReader.GetMethodDefinition(handle); 762var ok = _previousGeneration.FirstParamRowMap.TryGetValue(handle, out var firstRowId); 915int lastCustomAttributeRowId = _previousGeneration.CustomAttributesAdded.Count > 0 916? _previousGeneration.CustomAttributesAdded.Max(static entry => entry.Value[^1]) 917: _previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.CustomAttribute); 934int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault()); 935int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault()); 951xOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(x.parentHandle, out var rowIds) ? rowIds[0] : int.MaxValue; 952yOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(y.parentHandle, out rowIds) ? rowIds[0] : int.MaxValue; 970var originalCustomAttributes = _previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(parentHandle); 985var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1009var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1059var previousSizes = _previousGeneration.TableSizes; 1216var previousSizes = _previousGeneration.TableSizes; 1577if (_previousGeneration.TypesAdded.TryGetValue(item, out index)) 1589if (_previousGeneration.EventsAdded.TryGetValue(item, out index)) 1601if (_previousGeneration.FieldsAdded.TryGetValue(item, out index)) 1620if (_previousGeneration.MethodsAdded.TryGetValue(item, out index)) 1632if (_previousGeneration.PropertiesAdded.TryGetValue(item, out index)) 1649if (_previousGeneration.EventMapAdded.TryGetValue(item, out index)) 1654if (_previousGeneration.TypeToEventMap.TryGetValue(item, out index)) 1665if (_previousGeneration.PropertyMapAdded.TryGetValue(item, out index)) 1670if (_previousGeneration.TypeToPropertyMap.TryGetValue(item, out index)) 1681if (_previousGeneration.MethodImplsAdded.TryGetValue(item, out index)) 1686if (_previousGeneration.MethodImpls.TryGetValue(item, out index))