2 writes to OldSymbol
Microsoft.CodeAnalysis (2)
Emit\SemanticEdit.cs (2)
194OldSymbol = oldSymbol; 211OldSymbol = oldSymbol;
17 references to OldSymbol
Microsoft.CodeAnalysis (17)
Emit\EditAndContinue\DefinitionMap.cs (3)
95Debug.Assert(edit.OldSymbol != null); 97var oldMethod = (IMethodSymbolInternal?)GetISymbolInternalOrNull(edit.OldSymbol); 155/// <see cref="SemanticEdit.OldSymbol"/> might thus belong to a compilation that is newer than <see cref="EmitBaseline.Compilation"/>.
Emit\EditAndContinue\SymbolChanges.cs (7)
382Debug.Assert(edit.OldSymbol is IMethodSymbol or IPropertySymbol or IEventSymbol); 395var baselineSymbol = _definitionMap.MapToBaselineSource(GetRequiredInternalSymbol(edit.OldSymbol)); 425Debug.Assert(edit.OldSymbol == null || ((IMethodSymbol)edit.OldSymbol).PartialImplementationPart == null); 431var oldMethod = (IMethodSymbolInternal)GetRequiredInternalSymbol(edit.OldSymbol); 451Debug.Assert(edit.OldSymbol == null || ((IPropertySymbol)edit.OldSymbol).PartialImplementationPart == null);
Emit\SemanticEdit.cs (7)
59/// If not empty, <see cref="OldSymbol"/> and <see cref="NewSymbol"/> must be non-null <see cref="IMethodSymbol"/>s, and 221=> Hash.Combine(OldSymbol, Hash.Combine(NewSymbol, (int)Kind)); 228/// the corresponding <see cref="OldSymbol"/> and <see cref="NewSymbol"/> symbols are the same. 233&& (OldSymbol == null ? other.OldSymbol == null : OldSymbol.Equals(other.OldSymbol))