1 write to NewNode
Microsoft.CodeAnalysis.Workspaces (1)
Differencing\Edit.cs (1)
35NewNode = newNode;
29 references to NewNode
Microsoft.CodeAnalysis.CSharp.Features (4)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
2488var classifier = new EditClassifier(this, diagnostics, edit.OldNode, edit.NewNode, edit.Kind, match); 2638Debug.Assert(edit.Kind != EditKind.Update || edit.OldNode.RawKind == edit.NewNode.RawKind); 2640if (edit.Kind != EditKind.Update || !AreExceptionClausesEquivalent(edit.OldNode, edit.NewNode)) 2642AddAroundActiveStatementRudeDiagnostic(diagnostics, edit.OldNode, edit.NewNode, newStatementSpan);
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (10)
759map.Add(edit.NewNode, edit.Kind); 1741node = edit.NewNode; 2543Debug.Assert(edit.OldNode is null || edit.NewNode is null || IsNamespaceDeclaration(edit.OldNode) == IsNamespaceDeclaration(edit.NewNode)); 2547var symbolEdits = oldModel != null && IsNamespaceDeclaration(edit.OldNode ?? edit.NewNode!) 2549: GetSymbolEdits(edit.Kind, edit.OldNode, edit.NewNode, oldModel, newModel, editScript.Match, editMap, symbolCache, cancellationToken); 2574var newTypeDeclaration = GetSymbolDeclarationSyntax(newSymbol, refs => refs.First(r => r.SyntaxTree == edit.NewNode!.SyntaxTree), cancellationToken); 2585CreateDiagnosticContext(diagnostics, oldSymbol, newSymbol, edit.NewNode, newModel, editScript.Match). 2603var (oldDeclaration, newDeclaration) = GetSymbolDeclarationNodes(oldSymbol, newSymbol, edit.OldNode, edit.NewNode); 2605var diagnosticContext = CreateDiagnosticContext(diagnostics, oldSymbol, newSymbol, edit.NewNode, newModel, editScript.Match);
Microsoft.CodeAnalysis.VisualBasic.Features (4)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (4)
1923edit.NewNode.IsKind(SyntaxKind.ModifiedIdentifier) AndAlso 1924edit.NewNode.Parent.IsKind(SyntaxKind.VariableDeclarator) Then 1926If HasEdit(editMap, edit.NewNode.Parent.Parent, EditKind.Insert) Then 1934Dim classifier = New EditClassifier(Me, diagnostics, edit.OldNode, edit.NewNode, edit.Kind, match)
Microsoft.CodeAnalysis.Workspaces (11)
Differencing\Edit.cs (11)
71&& (NewNode == null) ? other.NewNode == null : NewNode.Equals(other.NewNode); 82if (NewNode != null) 84hash = Hash.Combine(NewNode.GetHashCode(), hash); 100return result + " [" + NewNode.ToString() + "]" + DisplayPosition(NewNode); 103return result + " [" + OldNode.ToString() + "]" + DisplayPosition(OldNode) + " -> [" + NewNode.ToString() + "]" + DisplayPosition(NewNode); 107return result + " [" + OldNode.ToString() + "]" + DisplayPosition(OldNode) + " -> " + DisplayPosition(NewNode);