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