92 references to GetChangedRoot
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
140var newRoot = editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
182var newRoot = editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
211return editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
335var currentRoot = editor.GetChangedRoot(); 342return editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
82solution = solution.WithDocumentSyntaxRoot(documentId, editor.GetChangedRoot());
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
63var changedRoot = nestedEditor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96var changedRoot = subEditor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
79var newRoot = editor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
112var newRoot = editor.GetChangedRoot();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
237return editor.GetChangedRoot();
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
37return document.WithSyntaxRoot(syntaxEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
58return document.WithSyntaxRoot(editor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
94return document.WithSyntaxRoot(editor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
91editor.ReplaceNode(editor.OriginalRoot, subEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
113return editor.GetChangedRoot();
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
172return editor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
311var finalMember = editor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
117return editor.GetChangedRoot();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
44var newRoot = rootEditor.GetChangedRoot();
Microsoft.CodeAnalysis.CSharp.Features (16)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (3)
213root = editor.GetChangedRoot(); 226document = document.WithSyntaxRoot(editor.GetChangedRoot()); 252return document.WithSyntaxRoot(editor.GetChangedRoot());
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
125var newRoot = editor.GetChangedRoot();
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
192return editor.GetChangedRoot();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
150return editor.GetChangedRoot();
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
75return document.WithSyntaxRoot(editor.GetChangedRoot());
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
304return document.WithSyntaxRoot(editor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
237return editor.GetChangedRoot();
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
37return document.WithSyntaxRoot(syntaxEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
58return document.WithSyntaxRoot(editor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
94return document.WithSyntaxRoot(editor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
91editor.ReplaceNode(editor.OriginalRoot, subEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
113return editor.GetChangedRoot();
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
172return editor.GetChangedRoot();
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
216var changedRoot = editor.GetChangedRoot();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
311var finalMember = editor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
117return editor.GetChangedRoot();
Microsoft.CodeAnalysis.Features (34)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
176return document.WithSyntaxRoot(editor.GetChangedRoot());
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
136var modifiedRoot = documentEditor.GetChangedRoot();
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
140var updatedDocument = document.WithSyntaxRoot(editor.GetChangedRoot());
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (1)
121return document.WithSyntaxRoot(editor.GetChangedRoot());
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
120var newRoot = editor.GetChangedRoot();
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
424var newRoot = editor.GetChangedRoot();
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
382return document.WithSyntaxRoot(editor.GetChangedRoot());
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
153var newRoot = editor.GetChangedRoot();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
591var newRoot = editor.GetChangedRoot();
ExtractInterface\AbstractExtractInterfaceService.cs (1)
351unformattedSolution = document.WithSyntaxRoot(editor.GetChangedRoot()).Project.Solution;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
379var newRoot = editor.GetChangedRoot();
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
509return currentSolution.WithDocumentSyntaxRoot(document.Id, editor.GetChangedRoot());
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
415return callerNodeEditor.GetChangedRoot();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
315return (TExpressionSyntax)editor.GetChangedRoot();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
271return editor.GetChangedRoot(); 533return editor.GetChangedRoot(); 564return (TExpressionSyntax)editor.GetChangedRoot();
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
58return document.WithSyntaxRoot(editor.GetChangedRoot());
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
341return docEditor.GetChangedRoot();
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
226updatedSolution = updatedSolution.WithDocumentSyntaxRoot(originalDocument.Id, editor.GetChangedRoot()); 394return updatedSolution.WithDocumentSyntaxRoot(documentId, editor.GetChangedRoot());
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
234updatedSolution = updatedSolution.WithDocumentSyntaxRoot(originalDocument.Id, editor.GetChangedRoot()); 394return updatedSolution.WithDocumentSyntaxRoot(documentId, editor.GetChangedRoot());
Shared\Utilities\ExtractTypeHelpers.cs (1)
46var newDocument = document.WithSyntaxRoot(editor.GetChangedRoot());
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
133return editor.GetChangedRoot();
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
113return editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
140var newRoot = editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
182var newRoot = editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
211return editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (2)
335var currentRoot = editor.GetChangedRoot(); 342return editor.GetChangedRoot();
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
82solution = solution.WithDocumentSyntaxRoot(documentId, editor.GetChangedRoot());
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
63var changedRoot = nestedEditor.GetChangedRoot();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
246var newRoot = editor.GetChangedRoot();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
112Return innerEditor.GetChangedRoot() 143Return editor.GetChangedRoot()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
322Return DirectCast(editor.GetChangedRoot(), TMethodBase)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
112Return innerEditor.GetChangedRoot() 143Return editor.GetChangedRoot()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
322Return DirectCast(editor.GetChangedRoot(), TMethodBase)
Microsoft.CodeAnalysis.Workspaces (5)
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
75var newRoot = editor.GetChangedRoot();
Editing\DocumentEditor.cs (1)
54=> OriginalDocument.WithSyntaxRoot(this.GetChangedRoot());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
96var changedRoot = subEditor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
79var newRoot = editor.GetChangedRoot();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
112var newRoot = editor.GetChangedRoot();
Microsoft.CodeAnalysis.Workspaces.UnitTests (9)
Editing\SyntaxEditorTests.cs (9)
53var newRoot = editor.GetChangedRoot(); 79var newRoot = editor.GetChangedRoot(); 104var newRoot = editor.GetChangedRoot(); 131var newRoot = editor.GetChangedRoot(); 158var newRoot = editor.GetChangedRoot(); 181var newRoot = editor.GetChangedRoot(); 231var newRoot = editor.GetChangedRoot(); 275var newRoot = editor.GetChangedRoot(); 318var newRoot = editor.GetChangedRoot();