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