1 write to OldNode
Microsoft.CodeAnalysis.Workspaces (1)
Differencing\Edit.cs (1)
34
OldNode
= oldNode;
26 references to OldNode
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
2496
var classifier = new EditClassifier(this, diagnostics, edit.
OldNode
, edit.NewNode, edit.Kind, match);
2646
Debug.Assert(edit.Kind != EditKind.Update || edit.
OldNode
.RawKind == edit.NewNode.RawKind);
2648
if (edit.Kind != EditKind.Update || !AreExceptionClausesEquivalent(edit.
OldNode
, edit.NewNode))
2650
AddAroundActiveStatementRudeDiagnostic(diagnostics, edit.
OldNode
, edit.NewNode, newStatementSpan);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.cs (1)
94
Assert.IsType<UsingDirectiveSyntax>(edits.Edits.First().
OldNode
);
Microsoft.CodeAnalysis.Features (9)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
805
map.Add(edit.
OldNode
, edit.Kind);
1922
node = edit.
OldNode
;
2737
Debug.Assert(edit.
OldNode
is null || edit.NewNode is null || IsNamespaceDeclaration(edit.
OldNode
) == IsNamespaceDeclaration(edit.NewNode));
2739
var symbolEdits = IsNamespaceDeclaration(edit.
OldNode
?? edit.NewNode!)
2741
: GetSymbolEdits(edit.Kind, edit.
OldNode
, edit.NewNode, oldModel, newModel, editScript.Match, editMap, symbolCache, cancellationToken);
2795
var (oldDeclaration, newDeclaration) = GetSymbolDeclarationNodes(oldSymbol, newSymbol, edit.
OldNode
, edit.NewNode);
2933
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.Delete, diagnosticSpan, edit.
OldNode
, [GetDisplayName(edit.
OldNode
!, EditKind.Delete)]));
Microsoft.CodeAnalysis.Workspaces (12)
Differencing\Edit.cs (12)
70
&& (
OldNode
== null) ? other.
OldNode
== null :
OldNode
.Equals(other.
OldNode
)
77
if (
OldNode
!= null)
79
hash = Hash.Combine(
OldNode
.GetHashCode(), hash);
97
return result + " [" +
OldNode
.ToString() + "]" + DisplayPosition(
OldNode
);
103
return result + " [" +
OldNode
.ToString() + "]" + DisplayPosition(
OldNode
) + " -> [" + NewNode.ToString() + "]" + DisplayPosition(NewNode);
107
return result + " [" +
OldNode
.ToString() + "]" + DisplayPosition(
OldNode
) + " -> " + DisplayPosition(NewNode);