1 write to _previousGeneration
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\DeltaMetadataWriter.cs (1)
94_previousGeneration = previousGeneration;
54 references to _previousGeneration
Microsoft.CodeAnalysis (54)
Emit\EditAndContinue\DeltaMetadataWriter.cs (54)
177var previousTableSizes = _previousGeneration.TableEntriesAdded; 188var synthesizedMembers = (_previousGeneration.Ordinal == 0) ? module.GetAllSynthesizedMembers() : _previousGeneration.SynthesizedMembers; 191var deletedMembers = (_previousGeneration.Ordinal == 0) ? module.EncSymbolChanges.DeletedMembers : _previousGeneration.DeletedMembers; 193var currentGenerationOrdinal = _previousGeneration.Ordinal + 1; 196var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 205return _previousGeneration.With( 211typesAdded: AddRange(_previousGeneration.TypesAdded, addedTypes, comparer: SymbolEquivalentEqualityComparer.Instance), 212eventsAdded: AddRange(_previousGeneration.EventsAdded, _eventDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 213fieldsAdded: AddRange(_previousGeneration.FieldsAdded, _fieldDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 214methodsAdded: AddRange(_previousGeneration.MethodsAdded, _methodDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 215firstParamRowMap: AddRange(_previousGeneration.FirstParamRowMap, _firstParamRowMap), 216propertiesAdded: AddRange(_previousGeneration.PropertiesAdded, _propertyDefs.GetAdded(), comparer: SymbolEquivalentEqualityComparer.Instance), 217eventMapAdded: AddRange(_previousGeneration.EventMapAdded, _eventMap.GetAdded()), 218propertyMapAdded: AddRange(_previousGeneration.PropertyMapAdded, _propertyMap.GetAdded()), 219methodImplsAdded: AddRange(_previousGeneration.MethodImplsAdded, _methodImpls.GetAdded()), 220customAttributesAdded: AddRange(_previousGeneration.CustomAttributesAdded, _customAttributesAdded), 223blobStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.Blob) + _previousGeneration.BlobStreamLengthAdded, 225stringStreamLengthAdded: metadataSizes.HeapSizes[(int)HeapIndex.String] + _previousGeneration.StringStreamLengthAdded, 227userStringStreamLengthAdded: metadataSizes.GetAlignedHeapSize(HeapIndex.UserString) + _previousGeneration.UserStringStreamLengthAdded, 233addedOrChangedMethods: AddRange(_previousGeneration.AddedOrChangedMethods, addedOrChangedMethodsByIndex), 234debugInformationProvider: _previousGeneration.DebugInformationProvider, 235localSignatureProvider: _previousGeneration.LocalSignatureProvider); 301get { return (ushort)(_previousGeneration.Ordinal + 1); } 311get { return _previousGeneration.EncId; } 406RoslynDebug.AssertNotNull(_previousGeneration.InitialBaseline.LazyMetadataSymbols); 407identity = _previousGeneration.InitialBaseline.LazyMetadataSymbols.AssemblyReferenceIdentityMap[identity.WithVersion(versionPattern)]; 749if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle)) 773var def = _previousGeneration.OriginalMetadata.MetadataReader.GetMethodDefinition(handle); 790var ok = _previousGeneration.FirstParamRowMap.TryGetValue(handle, out var firstRowId); 943int lastCustomAttributeRowId = _previousGeneration.CustomAttributesAdded.Count > 0 944? _previousGeneration.CustomAttributesAdded.Max(static entry => entry.Value[^1]) 945: _previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.CustomAttribute); 962int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault()); 963int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault()); 979xOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(x.parentHandle, out var rowIds) ? rowIds[0] : int.MaxValue; 980yOrdinal = _previousGeneration.CustomAttributesAdded.TryGetValue(y.parentHandle, out rowIds) ? rowIds[0] : int.MaxValue; 998var originalCustomAttributes = _previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(parentHandle); 1013var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1037var previouslyAddedRowIds = _previousGeneration.CustomAttributesAdded.TryGetValue(parentHandle, out var rowIds) ? rowIds : ImmutableArray<int>.Empty; 1087var previousSizes = _previousGeneration.TableSizes; 1244var previousSizes = _previousGeneration.TableSizes; 1605if (_previousGeneration.TypesAdded.TryGetValue(item, out index)) 1617if (_previousGeneration.EventsAdded.TryGetValue(item, out index)) 1629if (_previousGeneration.FieldsAdded.TryGetValue(item, out index)) 1648if (_previousGeneration.MethodsAdded.TryGetValue(item, out index)) 1660if (_previousGeneration.PropertiesAdded.TryGetValue(item, out index)) 1677if (_previousGeneration.EventMapAdded.TryGetValue(item, out index)) 1682if (_previousGeneration.TypeToEventMap.TryGetValue(item, out index)) 1693if (_previousGeneration.PropertyMapAdded.TryGetValue(item, out index)) 1698if (_previousGeneration.TypeToPropertyMap.TryGetValue(item, out index)) 1709if (_previousGeneration.MethodImplsAdded.TryGetValue(item, out index)) 1714if (_previousGeneration.MethodImpls.TryGetValue(item, out index))