29 references to NewRoot
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
EditAndContinue\Helpers\EditingTestBase.cs (2)
102var newMethodSource = methodEdits.Match.NewRoot.ToFullString(); 192var decl2 = (MethodDeclarationSyntax)((ClassDeclarationSyntax)((CompilationUnitSyntax)edits.Match.NewRoot).Members[0]).Members[0];
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
EditAndContinue\EditAndContinueTestHelpers.cs (2)
409newSolution = newSolution.WithDocumentSyntaxRoot(oldDocument.Id, editScripts[documentIndex].Match.NewRoot, PreservationMode.PreserveIdentity); 445if (pair.Value == bodyMatch.NewRoot)
Microsoft.CodeAnalysis.Features (21)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (21)
777if ((IsCompilationUnitWithGlobalStatements(editScript.Match.OldRoot) || IsCompilationUnitWithGlobalStatements(editScript.Match.NewRoot)) && 781map.Add(editScript.Match.NewRoot, EditKind.Update); 1325if (!bodyMatch.NewRoot.Span.Contains(newStatementSyntaxSpan.Start)) 1330newStatementSyntax = bodyMatch.NewRoot.FindToken(newStatementSyntaxSpan.Start).Parent; 1372Debug.Assert(newNode == currentBodyMatch.NewRoot); 1491if (IsLocalFunction(match.OldRoot) && IsLocalFunction(match.NewRoot)) 1493ReportMemberBodyUpdateRudeEdits(diagnostics, match.NewRoot, match.NewRoot.Span); 1811var newNodes = GetAncestors(GetEncompassingAncestor(match.NewRoot), newActiveStatement, nodeSelector); 1986var newTree = topMatch.NewRoot.SyntaxTree; 2544IsPartialEdit(oldContainingType, newContainingType, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? containingTypeSymbolKey : null)); 2584IsPartialEdit(oldType, newType, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? symbolKey : null)); 2623newActiveStatements[index] = GetActiveStatementWithSpan(oldActiveStatements[index], editScript.Match.NewRoot.SyntaxTree, newSpan, diagnostics, cancellationToken); 3184partialType: IsPartialEdit(oldSymbol, newSymbol, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? symbolKey : null, processedSymbols, 3198IsPartialEdit(oldSymbol, newSymbol, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? symbolKey : null)); 3236IsPartialEdit(oldContainingType, newContainingType, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? containingTypeSymbolKey : null)); 3291IsPartialEdit(oldSymbol, newSymbol, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? symbolKey : null)); 3424partialType: IsPartialEdit(oldSymbol, newSymbol, editScript.Match.OldRoot.SyntaxTree, editScript.Match.NewRoot.SyntaxTree) ? symbolKey : null, processedSymbols, 4262IsPartialEdit(oldSymbol, newSymbol, topMatch.OldRoot.SyntaxTree, topMatch.NewRoot.SyntaxTree) ? symbolKey : null)); 4268IsPartialEdit(oldSymbol.ContainingSymbol, newSymbol.ContainingSymbol, topMatch.OldRoot.SyntaxTree, topMatch.NewRoot.SyntaxTree) ? containingTypeSymbolKey : null)); 4869var newSyntaxTree = topMatch.NewRoot.SyntaxTree;
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EditAndContinue\Helpers\EditingTestBase.vb (1)
130Dim newMethodSource = methodEdits.Match.NewRoot.ToFullString()
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
2771Dim onErrorOrResumeStatement = FindOnErrorOrResumeStatement(match.NewRoot)
Microsoft.CodeAnalysis.Workspaces (2)
Differencing\EditScript.cs (1)
40private TNode Root2 => _match.NewRoot;
Differencing\Match.cs (1)
364/// to <see cref="NewRoot"/> subtree.