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