29 references to OldRoot
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
EditAndContinue\Helpers\EditAndContinueValidation.cs (1)
30new[] { new SequencePointUpdates(editScript.Match.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray()) },
EditAndContinue\Helpers\EditingTestBase.cs (2)
101var oldMethodSource = methodEdits.Match.OldRoot.ToFullString(); 189var decl1 = (MethodDeclarationSyntax)((ClassDeclarationSyntax)((CompilationUnitSyntax)edits.Match.OldRoot).Members[0]).Members[0];
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
EditAndContinue\EditAndContinueTestHelpers.cs (3)
399var oldRoot = editScript.Match.OldRoot; 447Assert.Same(pair.Key, bodyMatch.OldRoot); 458=> ToMatchingPairs(match.Matches.Where(partners => partners.Key != match.OldRoot));
Microsoft.CodeAnalysis.Features (19)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (19)
777if ((IsCompilationUnitWithGlobalStatements(editScript.Match.OldRoot) || IsCompilationUnitWithGlobalStatements(editScript.Match.NewRoot)) && 780map.Add(editScript.Match.OldRoot, EditKind.Update); 817var node = TryGetNode(topMatch.OldRoot, oldStatementSpan.Start); 820if (node != null && TryFindMemberDeclaration(topMatch.OldRoot, node, out var oldMemberDeclarations)) 1370if (oldNode == currentBodyMatch.OldRoot) 1491if (IsLocalFunction(match.OldRoot) && IsLocalFunction(match.NewRoot)) 1613var oldParentLambdaBody = FindEnclosingLambdaBody(match.OldRoot, GetLambda(oldLambdaBody)); 1817var oldNodes = GetAncestors(GetEncompassingAncestor(match.OldRoot), oldActiveStatement, nodeSelector); 1985var oldTree = topMatch.OldRoot.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)); 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)); 4868var oldSyntaxTree = topMatch.OldRoot.SyntaxTree;
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
EditAndContinue\Helpers\EditAndContinueValidation.vb (1)
28{New SequencePointUpdates(editScript.Match.OldRoot.SyntaxTree.FilePath, lineEdits.ToImmutableArray())},
EditAndContinue\Helpers\EditingTestBase.vb (1)
129Dim oldMethodSource = methodEdits.Match.OldRoot.ToFullString()
Microsoft.CodeAnalysis.Workspaces (2)
Differencing\EditScript.cs (1)
38private TNode Root1 => _match.OldRoot;
Differencing\Match.cs (1)
363/// Returns an edit script (a sequence of edits) that transform <see cref="OldRoot"/> subtree