Emit\EditAndContinue\EmitBaseline.cs (16)
193synthesizedMembers: ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty,
194deletedMembers: ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty,
285internal readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> SynthesizedMembers;
286internal readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> DeletedMembers;
314IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> synthesizedMembers,
315IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers,
413IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> synthesizedMembers,
414IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers,
Emit\EditAndContinue\SymbolChanges.cs (38)
28private readonly IReadOnlyDictionary<ISymbolInternal, SymbolChange> _changes;
34private readonly ISet<ISymbolInternal> _replacedSymbols;
41public readonly IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> DeletedMembers;
62public bool IsReplaced(ISymbolInternal symbol, bool checkEnclosingTypes = false)
64ISymbolInternal? currentSymbol = symbol;
96public bool RequiresCompilation(ISymbolInternal symbol)
99private bool DefinitionExistsInPreviousGeneration(ISymbolInternal symbol)
111var current = symbol;
128var symbol = def.GetInternalSymbol();
231private SymbolChange GetChange(ISymbolInternal symbol)
248var container = GetContainingSymbol(symbol);
320protected abstract ISymbolInternal? GetISymbolInternalOrNull(ISymbol symbol);
322public ISymbolInternal GetRequiredInternalSymbol(ISymbol? symbol)
325var result = GetISymbolInternalOrNull(symbol);
351out IReadOnlyDictionary<ISymbolInternal, SymbolChange> changes,
352out ISet<ISymbolInternal> replacedSymbols,
353out IReadOnlyDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>> deletedMembers,
356var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>();
358var lazyReplacedSymbolsBuilder = (HashSet<ISymbolInternal>?)null;
359var lazyDeletedMembersBuilder = (Dictionary<ISymbolInternal, ArrayBuilder<ISymbolInternal>>?)null;
376(lazyReplacedSymbolsBuilder ??= new HashSet<ISymbolInternal>()).Add(GetRequiredInternalSymbol(edit.NewSymbol));
389deletedMembersPerType = ArrayBuilder<ISymbolInternal>.GetInstance();
393var oldSymbol = GetRequiredInternalSymbol(edit.OldSymbol);
413var newMember = GetRequiredInternalSymbol(edit.NewSymbol);
466replacedSymbols = lazyReplacedSymbolsBuilder ?? SpecializedCollections.EmptySet<ISymbolInternal>();
470elementSelector: static e => e.Value.ToImmutableAndFree()) ?? ImmutableSegmentedDictionary<ISymbolInternal, ImmutableArray<ISymbolInternal>>.Empty;
477private static void AddContainingSymbolChanges(Dictionary<ISymbolInternal, SymbolChange> changes, ISymbolInternal symbol)
481var containingSymbol = GetContainingSymbol(symbol);
499private static ISymbolInternal? GetContainingSymbol(ISymbolInternal symbol)
506var associated = GetAssociatedSymbol(symbol);
527private static ISymbolInternal? GetAssociatedSymbol(ISymbolInternal symbol)