2 writes to OldSymbol
Microsoft.CodeAnalysis (2)
Emit\SemanticEdit.cs (2)
194
OldSymbol
= oldSymbol;
211
OldSymbol
= oldSymbol;
17 references to OldSymbol
Microsoft.CodeAnalysis (17)
Emit\EditAndContinue\DefinitionMap.cs (3)
95
Debug.Assert(edit.
OldSymbol
!= null);
97
var 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)
382
Debug.Assert(edit.
OldSymbol
is IMethodSymbol or IPropertySymbol or IEventSymbol);
395
var baselineSymbol = _definitionMap.MapToBaselineSource(GetRequiredInternalSymbol(edit.
OldSymbol
));
425
Debug.Assert(edit.
OldSymbol
== null || ((IMethodSymbol)edit.
OldSymbol
).PartialImplementationPart == null);
431
var oldMethod = (IMethodSymbolInternal)GetRequiredInternalSymbol(edit.
OldSymbol
);
451
Debug.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
))