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