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