1 type derived from SyntaxEditor
Microsoft.CodeAnalysis.Workspaces (1)
Editing\DocumentEditor.cs (1)
16public class DocumentEditor : SyntaxEditor
28 instantiations of SyntaxEditor
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
177var editor = new SyntaxEditor(root, currentSolution.Services);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
188var editor = new SyntaxEditor(node, solutionServices);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
304var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
66var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
56var nestedEditor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
75var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
83var editor = new SyntaxEditor(root, document.Project.Solution.Services);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
105var editor = new SyntaxEditor(currentRoot, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
65var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
161var editor = new SyntaxEditor(currentRoot, services);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
44var editor = new SyntaxEditor(memberDeclaration, document.Project.Solution.Services);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
37var rootEditor = new SyntaxEditor(root, services);
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
121var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
105var editor = new SyntaxEditor(currentRoot, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
65var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
161var editor = new SyntaxEditor(currentRoot, services);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
44var editor = new SyntaxEditor(memberDeclaration, document.Project.Solution.Services);
Microsoft.CodeAnalysis.Features (3)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
82var editor = new SyntaxEditor(root, document.Project.Solution.Services);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
336var editor = new SyntaxEditor(currentRoot, solution.Services);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
188var editor = new SyntaxEditor(node, solutionServices);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
102Dim innerEditor = New SyntaxEditor(root, document.Project.Solution.Services) 136Dim editor = New SyntaxEditor(root, document.Project.Solution.Services)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (2)
102Dim innerEditor = New SyntaxEditor(root, document.Project.Solution.Services) 136Dim editor = New SyntaxEditor(root, document.Project.Solution.Services)
Microsoft.CodeAnalysis.Workspaces (3)
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
71var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
75var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
83var editor = new SyntaxEditor(root, document.Project.Solution.Services);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
36=> new SyntaxEditor(root, EmptyWorkspace.Services.SolutionServices);
567 references to SyntaxEditor
Microsoft.CodeAnalysis.CodeStyle.Fixes (88)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
45SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
15SyntaxEditor editor, ISymbol symbol, SyntaxNode declaration)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
85SyntaxEditor editor, CancellationToken cancellationToken) 102SyntaxEditor editor, SyntaxAnnotation? annotation, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
215SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
73SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
107var editor = new SyntaxEditor(syntaxRoot, solution.Services);
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
44SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
36SyntaxEditor editor, CancellationToken cancellationToken) 51public void ConvertTypeOfToNameOf(SemanticModel semanticModel, SyntaxEditor editor, TMemberAccessExpressionSyntax nodeToReplace, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
45SyntaxEditor editor, CancellationToken cancellationToken) 60SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
80protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
41SyntaxEditor editor, 57Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (2)
177var editor = new SyntaxEditor(root, currentSolution.Services); 187SyntaxEditor editor, ISyntaxFactsService syntaxFacts, ReferenceLocation referenceLocation, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
29protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (5)
50Document document, SyntaxEditor editor, SemanticModel semanticModel, 124Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 137Document document, SyntaxEditor editor, Diagnostic diagnostic, 159SyntaxEditor editor, SemanticModel semanticModel, 222SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
30Document document, SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
31Document document, SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
65SyntaxEditor editor, CancellationToken cancellationToken) 188var editor = new SyntaxEditor(node, solutionServices);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
33SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
40protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
47protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 70SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
45SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (8)
92protected abstract void InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(TSwitchCaseBlockSyntax switchCaseBlock, SyntaxEditor editor, TLocalDeclarationStatementSyntax declarationStatement); 103SyntaxEditor editor, 122protected virtual SyntaxNode? TryUpdateParentOfUpdatedNode(SyntaxNode parent, SyntaxNode newNameNode, SyntaxEditor editor, ISyntaxFacts syntaxFacts, SemanticModel semanticModel) => null; 285protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 304var editor = new SyntaxEditor(root, document.Project.Solution.Services); 355SyntaxEditor editor, 390SyntaxEditor editor) 451SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
40SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
51SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
66var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
41protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
39SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
40SyntaxEditor editor, CancellationToken cancellationToken) 58SyntaxEditor editor, SemanticModel semanticModel, INamedTypeSymbol? expressionTypeOpt,
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
62SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
54SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (3)
42SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken); 45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, 56var nestedEditor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
60SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken) 102SyntaxEditor editor, 120ISyntaxFactsService syntaxFacts, SyntaxEditor editor, IConditionalOperation ifOperation,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
49SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
20protected abstract void LanguageSpecificRemoveSuggestedNode(SyntaxEditor editor, SyntaxNode node); 33SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
52SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (3)
70SyntaxEditor editor, CancellationToken cancellationToken) 91SyntaxEditor editor, 141SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
61SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (3)
41SyntaxEditor editor, 60SyntaxEditor editor, 87var subEditor = new SyntaxEditor(currentRoot, solutionServices);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (3)
71Func<SyntaxEditor, Task> editAsync, 75var editor = new SyntaxEditor(root, document.Project.Solution.Services); 89Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
19SyntaxEditor editor,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
27this SyntaxEditor editor, Document document, 50this SyntaxEditor editor, Document document, 73this SyntaxEditor editor, Document document, 94this SyntaxEditor editor, Document document, 117this SyntaxEditor editor, Document document, 151this SyntaxEditor editor, Document document,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (3)
83var editor = new SyntaxEditor(root, document.Project.Solution.Services); 117Document document, State state, SyntaxEditor editor, SyntaxAnnotation warningAnnotation, CancellationToken cancellationToken) 158Document document, State state, SyntaxEditor editor, SyntaxAnnotation warningAnnotation)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (103)
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
33SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
79protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
137SyntaxEditor editor, CancellationToken cancellationToken) 150SyntaxEditor editor, SyntaxNode container,
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
32SyntaxEditor editor, SyntaxNode container, 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
56SyntaxEditor editor, SyntaxNode container,
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
53SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
53SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
134SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
78SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
127protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
46SyntaxEditor editor, CancellationToken cancellationToken) 105var editor = new SyntaxEditor(currentRoot, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (4)
46SyntaxEditor editor, CancellationToken cancellationToken) 58SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken) 72SyntaxEditor editor, 117SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
38protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
35var syntaxEditor = new SyntaxEditor(root, document.Project.Solution.Services); 44SyntaxEditor syntaxEditor,
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
32Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
52protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
107protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
49SyntaxEditor editor, CancellationToken cancellationToken) 64private static void MakeStatementAsynchronous(SyntaxEditor editor, SyntaxNode statementToFix)
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
39SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
49var editor = new SyntaxEditor(root, document.Project.Solution.Services); 62SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
77SyntaxEditor editor, 100Document document, SemanticModel model, SyntaxEditor editor, SyntaxNode node, HashSet<TypeSyntax> alreadyHandled, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
63var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
38SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
52SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (2)
53SyntaxEditor editor, 80static void RemoveStatement(SyntaxEditor editor, SyntaxNode statement)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (3)
92protected override SyntaxNode? TryUpdateParentOfUpdatedNode(SyntaxNode parent, SyntaxNode newNameNode, SyntaxEditor editor, ISyntaxFacts syntaxFacts, SemanticModel semanticModel) 169protected override void InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(SwitchSectionSyntax switchCaseBlock, SyntaxEditor editor, LocalDeclarationStatementSyntax declarationStatement) 187SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
97SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (2)
39SyntaxEditor editor, 74var subEditor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
38SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
46SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
33SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
42SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 65var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (2)
55SyntaxEditor editor, CancellationToken cancellationToken) 76SemanticModel semanticModel, SyntaxEditor editor, Diagnostic diagnostic,
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (3)
42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 45private static async Task FixAllImplAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 60SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
46SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (6)
42SyntaxEditor editor, CancellationToken cancellationToken) 54Document document, SyntaxEditor editor, 82private static async Task HandleDeclarationExpressionAsync(Document document, SyntaxEditor editor, DeclarationExpressionSyntax declarationExpression, CancellationToken cancellationToken) 109private static Task HandleForEachStatementAsync(Document document, SyntaxEditor editor, ForEachStatementSyntax forEach, CancellationToken cancellationToken) 117private static Task HandleVariableDeclarationAsync(Document document, SyntaxEditor editor, VariableDeclarationSyntax varDecl, CancellationToken cancellationToken) 128private static async Task UpdateTypeSyntaxAsync(Document document, SyntaxEditor editor, TypeSyntax typeSyntax, SyntaxNode declarationSyntax, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
34SyntaxEditor editor, CancellationToken cancellationToken) 47internal static void ReplaceTypeWithVar(SyntaxEditor editor, TypeSyntax type)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
47SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseInferredMemberName\CSharpUseInferredMemberNameCodeFixProvider.cs (1)
18protected override void LanguageSpecificRemoveSuggestedNode(SyntaxEditor editor, SyntaxNode node)
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
37SyntaxEditor editor, CancellationToken cancellationToken) 49SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
55SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
53SyntaxEditor editor, CancellationToken cancellationToken) 161var editor = new SyntaxEditor(currentRoot, services);
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
39SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
74SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 49private static void FixOne(SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 83SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
38SyntaxEditor editor, CancellationToken cancellationToken) 50SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
36SyntaxEditor editor, CancellationToken cancellationToken) 48SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
47SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
41SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
38SyntaxEditor editor, CancellationToken cancellationToken) 47SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 50SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
44SyntaxEditor editor, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
293var editor = new SyntaxEditor(destination, this.LanguageServices.SolutionServices);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (4)
44var editor = new SyntaxEditor(memberDeclaration, document.Project.Solution.Services); 128private readonly SyntaxEditor _editor; 132private RemoveDiscardHelper(LocalDeclarationStatementSyntax localDeclarationStatement, SyntaxEditor editor) 142SyntaxEditor editor)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
37var rootEditor = new SyntaxEditor(root, services);
Microsoft.CodeAnalysis.CSharp.Features (139)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
136var editor = new SyntaxEditor(root, generator);
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (2)
23protected abstract Task HandleDeclarationAsync(Document document, SyntaxEditor editor, TypeSyntax type, CancellationToken cancellationToken); 121var editor = new SyntaxEditor(root, document.Project.Solution.Services);
CodeRefactorings\UseExplicitOrImplicitType\UseExplicitTypeCodeRefactoringProvider.cs (1)
35protected override Task HandleDeclarationAsync(Document document, SyntaxEditor editor, TypeSyntax node, CancellationToken cancellationToken)
CodeRefactorings\UseExplicitOrImplicitType\UseImplicitTypeCodeRefactoringProvider.cs (1)
35protected override Task HandleDeclarationAsync(Document document, SyntaxEditor editor, TypeSyntax type, CancellationToken cancellationToken)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
172var editor = new SyntaxEditor(root, CSharpSyntaxGenerator.Instance); 585SyntaxEditor editor,
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
57SemanticModel model, ForEachInfo foreachInfo, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
28public abstract void Convert(SyntaxEditor editor, bool convertToQuery, CancellationToken cancellationToken);
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (1)
47public override void Convert(SyntaxEditor editor, bool convertToQuery, CancellationToken cancellationToken)
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (1)
25public override void Convert(SyntaxEditor editor, bool convertToQuery, CancellationToken cancellationToken)
ConvertLinq\ConvertForEachToLinqQuery\YieldReturnConverter.cs (1)
23public override void Convert(SyntaxEditor editor, bool convertToQuery, CancellationToken cancellationToken)
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (1)
90SyntaxEditor editor,
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
105var editor = new SyntaxEditor(root, generator);
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (1)
49Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (1)
49Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
138SyntaxEditor editor,
EmbeddedLanguages\CSharpJsonDetectionCodeFixProvider.cs (1)
26protected override void AddComment(SyntaxEditor editor, SyntaxToken stringLiteral, string commentContents)
EmbeddedLanguages\EmbeddedLanguageUtilities.cs (1)
12internal static void AddComment(SyntaxEditor editor, SyntaxToken stringLiteral, string commentContents)
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
42var editor = new SyntaxEditor(root, document.Project.Solution.Services);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
89SyntaxEditor editor, ISyntaxFactsService syntaxFacts,
InitializeParameter\CSharpAddParameterCheckCodeRefactoringProvider.cs (1)
42protected override void InsertStatement(SyntaxEditor editor, SyntaxNode functionDeclaration, bool returnsVoid, SyntaxNode? statementToAddAfter, StatementSyntax statement)
InitializeParameter\CSharpInitializeMemberFromParameterCodeRefactoringProvider.cs (2)
41protected override void InsertStatement(SyntaxEditor editor, SyntaxNode functionDeclaration, bool returnsVoid, SyntaxNode? statementToAddAfter, StatementSyntax statement) 68SyntaxEditor editor)
InitializeParameter\InitializeParameterHelpers.cs (1)
58SyntaxEditor editor,
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
57protected override void RemoveOrReplaceNode(SyntaxEditor editor, SyntaxNode node, IBlockFactsService blockFacts)
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (8)
36public void RemoveSetMethod(SyntaxEditor editor, SyntaxNode setMethodDeclaration) 42SyntaxEditor editor, 309private static readonly Action<SyntaxEditor, InvocationExpressionSyntax, SimpleNameSyntax, SimpleNameSyntax> s_replaceGetReferenceInvocation = 318private static readonly Action<SyntaxEditor, InvocationExpressionSyntax, SimpleNameSyntax, SimpleNameSyntax> s_replaceSetReferenceInvocation = 350public void ReplaceGetReference(SyntaxEditor editor, SyntaxToken nameToken, string propertyName, bool nameChanged) 353public void ReplaceSetReference(SyntaxEditor editor, SyntaxToken nameToken, string propertyName, bool nameChanged) 356public static void ReplaceInvocation(SyntaxEditor editor, SyntaxToken nameToken, string propertyName, bool nameChanged, 357Action<SyntaxEditor, InvocationExpressionSyntax, SimpleNameSyntax, SimpleNameSyntax> replace)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (1)
272var editor = new SyntaxEditor(root, document.Project.Solution.Services);
SplitOrMergeIfStatements\CSharpIfLikeStatementGenerator.cs (2)
134public void InsertElseIfClause(SyntaxEditor editor, SyntaxNode afterIfOrElseIf, SyntaxNode elseIfClause) 156public void RemoveElseIfClause(SyntaxEditor editor, SyntaxNode elseIfClause)
src\Analyzers\CSharp\CodeFixes\AddBraces\CSharpAddBracesCodeFixProvider.cs (1)
33SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
79protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
137SyntaxEditor editor, CancellationToken cancellationToken) 150SyntaxEditor editor, SyntaxNode container,
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
32SyntaxEditor editor, SyntaxNode container, 44SyntaxEditor editor, SyntaxNode exprOrStatement, ImmutableArray<SyntaxNode> statements)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
56SyntaxEditor editor, SyntaxNode container,
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (1)
53SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
53SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
134SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
78SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
127protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
46SyntaxEditor editor, CancellationToken cancellationToken) 105var editor = new SyntaxEditor(currentRoot, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (4)
46SyntaxEditor editor, CancellationToken cancellationToken) 58SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken) 72SyntaxEditor editor, 117SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeAnonymousFunctionStatic\CSharpMakeAnonymousFunctionStaticCodeFixProvider.cs (1)
38protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
35var syntaxEditor = new SyntaxEditor(root, document.Project.Solution.Services); 44SyntaxEditor syntaxEditor,
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixProvider.cs (1)
32Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (1)
52protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
107protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (2)
49SyntaxEditor editor, CancellationToken cancellationToken) 64private static void MakeStatementAsynchronous(SyntaxEditor editor, SyntaxNode statementToFix)
src\Analyzers\CSharp\CodeFixes\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
39SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\MakeStructReadOnly\CSharpMakeStructReadOnlyCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
49var editor = new SyntaxEditor(root, document.Project.Solution.Services); 62SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
77SyntaxEditor editor, 100Document document, SemanticModel model, SyntaxEditor editor, SyntaxNode node, HashSet<TypeSyntax> alreadyHandled, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (1)
63var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryCast\CSharpRemoveUnnecessaryCastCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryDiscardDesignation\CSharpRemoveUnnecessaryDiscardDesignationCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionCodeFixProvider.cs (1)
38SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveCodeFixProvider.cs (1)
52SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (2)
53SyntaxEditor editor, 80static void RemoveStatement(SyntaxEditor editor, SyntaxNode statement)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedLocalFunction\CSharpRemoveUnusedLocalFunctionCodeFixProvider.cs (1)
42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (3)
92protected override SyntaxNode? TryUpdateParentOfUpdatedNode(SyntaxNode parent, SyntaxNode newNameNode, SyntaxEditor editor, ISyntaxFacts syntaxFacts, SemanticModel semanticModel) 169protected override void InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(SwitchSectionSyntax switchCaseBlock, SyntaxEditor editor, LocalDeclarationStatementSyntax declarationStatement) 187SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
97SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (2)
39SyntaxEditor editor, 74var subEditor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
38SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForEmptyCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
46SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
37SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
33SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
42SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 65var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (2)
55SyntaxEditor editor, CancellationToken cancellationToken) 76SemanticModel semanticModel, SyntaxEditor editor, Diagnostic diagnostic,
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (3)
42protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 45private static async Task FixAllImplAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 60SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
46SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (6)
42SyntaxEditor editor, CancellationToken cancellationToken) 54Document document, SyntaxEditor editor, 82private static async Task HandleDeclarationExpressionAsync(Document document, SyntaxEditor editor, DeclarationExpressionSyntax declarationExpression, CancellationToken cancellationToken) 109private static Task HandleForEachStatementAsync(Document document, SyntaxEditor editor, ForEachStatementSyntax forEach, CancellationToken cancellationToken) 117private static Task HandleVariableDeclarationAsync(Document document, SyntaxEditor editor, VariableDeclarationSyntax varDecl, CancellationToken cancellationToken) 128private static async Task UpdateTypeSyntaxAsync(Document document, SyntaxEditor editor, TypeSyntax typeSyntax, SyntaxNode declarationSyntax, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (2)
34SyntaxEditor editor, CancellationToken cancellationToken) 47internal static void ReplaceTypeWithVar(SyntaxEditor editor, TypeSyntax type)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseIndexOperatorCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
47SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseInferredMemberName\CSharpUseInferredMemberNameCodeFixProvider.cs (1)
18protected override void LanguageSpecificRemoveSuggestedNode(SyntaxEditor editor, SyntaxNode node)
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (2)
37SyntaxEditor editor, CancellationToken cancellationToken) 49SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorCodeFixProvider.cs (1)
55SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckCodeFixProvider.cs (1)
40SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
53SyntaxEditor editor, CancellationToken cancellationToken) 161var editor = new SyntaxEditor(currentRoot, services);
src\Analyzers\CSharp\CodeFixes\UseNameofInAttribute\CSharpUseNameofInAttributeCodeFixProvider.cs (1)
39SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
74SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndMemberAccessCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 49private static void FixOne(SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 83SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (2)
38SyntaxEditor editor, CancellationToken cancellationToken) 50SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (2)
36SyntaxEditor editor, CancellationToken cancellationToken) 48SyntaxEditor editor,
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
47SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
41SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
38SyntaxEditor editor, CancellationToken cancellationToken) 47SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (2)
41SyntaxEditor editor, CancellationToken cancellationToken) 50SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
44SyntaxEditor editor, CancellationToken cancellationToken)
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (2)
190SyntaxEditor editor, 236SyntaxEditor editor,
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (1)
49SyntaxEditor editor, CancellationToken cancellationToken)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
191var editor = new SyntaxEditor(root, CSharpSyntaxGenerator.Instance);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
293var editor = new SyntaxEditor(destination, this.LanguageServices.SolutionServices);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (4)
44var editor = new SyntaxEditor(memberDeclaration, document.Project.Solution.Services); 128private readonly SyntaxEditor _editor; 132private RemoveDiscardHelper(LocalDeclarationStatementSyntax localDeclarationStatement, SyntaxEditor editor) 142SyntaxEditor editor)
Microsoft.CodeAnalysis.Features (143)
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (1)
118var editor = new SyntaxEditor(syntaxRoot, document.Project.Solution.Services);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (1)
189SyntaxEditor editor,
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (4)
108var editor = new SyntaxEditor(root, generator); 150Document document, SyntaxEditor editor, SyntaxNode containingMember, 178Document document, SyntaxEditor editor, INamedTypeSymbol classSymbol, 214SyntaxEditor editor, INamedTypeSymbol classSymbol,
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (2)
110var editor = new SyntaxEditor(root, SyntaxGenerator.GetGenerator(document)); 124private void ReplaceWithTuple(SyntaxEditor editor, TAnonymousObjectCreationExpressionSyntax node)
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
82var editor = new SyntaxEditor(root, document.Project.Solution.Services);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (3)
45SemanticModel model, ForEachInfo info, SyntaxEditor editor, CancellationToken cancellationToken); 104ForEachInfo foreachInfo, SyntaxEditor editor, 420var editor = new SyntaxEditor(model.SyntaxTree.GetRoot(cancellationToken), services);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
325var editor = new SyntaxEditor(root, generator);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
182SyntaxEditor editor,
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
151var editor = new SyntaxEditor(converter.ForEachInfo.SemanticModel.SyntaxTree.GetRoot(cancellationToken), document.Project.Solution.Services);
ConvertLinq\ConvertForEachToLinqQuery\IConverter.cs (1)
14void Convert(SyntaxEditor editor, bool convertToQuery, CancellationToken cancellationToken);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (11)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>(); 325Dictionary<Document, SyntaxEditor> documentToEditorMap, 379var editor = new SyntaxEditor(syntaxRoot, generator); 554Dictionary<Document, SyntaxEditor> documentToEditorMap, 560if (!documentToEditorMap.TryGetValue(document, out var editor)) 584Document startingDocument, Dictionary<Document, SyntaxEditor> documentToEditorMap, CancellationToken cancellationToken) 614Document document, NamingRule parameterNamingRule, bool isRecord, SyntaxEditor editor, 634Document document, NamingRule parameterNamingRule, bool isRecord, SyntaxEditor editor, 690SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters, 748Document document, SyntaxEditor editor, SyntaxNode startingNode, 780SyntaxEditor editor, string typeName, ImmutableArray<ITypeParameterSymbol> typeParameters,
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionCodeFixProvider.cs (3)
30protected abstract void AddComment(SyntaxEditor editor, SyntaxToken stringLiteral, string commentContents); 46public void Fix(SyntaxEditor editor, Diagnostic diagnostic, CancellationToken cancellationToken) 60SyntaxEditor editor, CancellationToken cancellationToken)
ExtractInterface\AbstractExtractInterfaceService.cs (1)
336var editor = new SyntaxEditor(currentRoot, solution.Services);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
362var editor = new SyntaxEditor(root, document.Project.Solution.Services);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
50protected abstract bool TryUpdateTupleAssignment(IBlockOperation? blockStatement, IParameterSymbol parameter, ISymbol fieldOrProperty, SyntaxEditor editor); 435var editor = new SyntaxEditor(root, services); 517SyntaxEditor editor)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
57SyntaxEditor editor, SyntaxNode functionDeclaration, bool returnsVoid,
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
377var callerNodeEditor = new SyntaxEditor(callerDeclarationNode, syntaxGenerator);
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
292var editor = new SyntaxEditor(inlineExpression, syntaxGenerator);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (5)
224var editor = new SyntaxEditor(root, _generator); 485var editor = new SyntaxEditor(root, _generator); 492var expressionEditor = new SyntaxEditor(_expression, _generator); 541private TExpressionSyntax CreateNewArgumentExpression(SyntaxEditor editor, 629private async Task UpdateExpressionInOriginalFunctionAsync(SyntaxEditor editor, CancellationToken cancellationToken)
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (1)
49var editor = new SyntaxEditor(root, document.Project.Solution.Services);
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
48SyntaxEditor editor, CancellationToken cancellationToken)
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (3)
33protected abstract void RemoveOrReplaceNode(SyntaxEditor editor, SyntaxNode node, IBlockFactsService blockFacts); 60protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor syntaxEditor, CancellationToken cancellationToken) 122protected static void RemoveNode(SyntaxEditor editor, SyntaxNode node, IBlockFactsService blockFacts)
ReplaceMethodWithProperty\IReplaceMethodWithPropertyService.cs (4)
20void ReplaceGetReference(SyntaxEditor editor, SyntaxToken nameToken, string propertyName, bool nameChanged); 21void ReplaceSetReference(SyntaxEditor editor, SyntaxToken nameToken, string propertyName, bool nameChanged); 25SyntaxEditor editor, SemanticModel semanticModel, 28void RemoveSetMethod(SyntaxEditor editor, SyntaxNode setMethodDeclaration);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (4)
220var editor = new SyntaxEditor(root, originalDocument.Project.Solution.Services); 234SyntaxNode root, SyntaxEditor editor, 274SyntaxNode root, SyntaxEditor editor, 364var editor = new SyntaxEditor(root, updatedSolution.Services);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (3)
56SyntaxEditor editor, SyntaxNode identifierName, 80private readonly SyntaxEditor _editor; 96SyntaxEditor editor,
ReplacePropertyWithMethods\IReplacePropertyWithMethodsService.cs (1)
23SyntaxEditor editor, SyntaxNode identifierName,
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
227var editor = new SyntaxEditor(root, originalDocument.Project.Solution.Services); 243SyntaxNode root, SyntaxEditor editor, 366var editor = new SyntaxEditor(root, updatedSolution.Services);
Shared\Utilities\ExtractTypeHelpers.cs (1)
33var editor = new SyntaxEditor(originalRoot, symbolMapping.AnnotatedSolution.Services);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
44SyntaxEditor editor, CancellationToken cancellationToken)
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (1)
103SyntaxEditor editor, CancellationToken cancellationToken)
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
93var editor = new SyntaxEditor(root, generator);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
70var editor = new SyntaxEditor(root, generator);
SplitOrMergeIfStatements\IIfLikeStatementGenerator.cs (2)
62void InsertElseIfClause(SyntaxEditor editor, SyntaxNode afterIfOrElseIf, SyntaxNode elseIfClause); 67void RemoveElseIfClause(SyntaxEditor editor, SyntaxNode elseIfClause);
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
45SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AddAccessibilityModifiersHelpers.cs (1)
15SyntaxEditor editor, ISymbol symbol, SyntaxNode declaration)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
85SyntaxEditor editor, CancellationToken cancellationToken) 102SyntaxEditor editor, SyntaxAnnotation? annotation, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
215SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
73SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
107var editor = new SyntaxEditor(syntaxRoot, solution.Services);
src\Analyzers\Core\CodeFixes\AddRequiredParentheses\AddRequiredParenthesesCodeFixProvider.cs (1)
44SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (2)
36SyntaxEditor editor, CancellationToken cancellationToken) 51public void ConvertTypeOfToNameOf(SemanticModel semanticModel, SyntaxEditor editor, TMemberAccessExpressionSyntax nodeToReplace, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (2)
45SyntaxEditor editor, CancellationToken cancellationToken) 60SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
80protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
41SyntaxEditor editor, 57Document document, SyntaxEditor editor, List<TSymbolSyntax> declarators, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (2)
177var editor = new SyntaxEditor(root, currentSolution.Services); 187SyntaxEditor editor, ISyntaxFactsService syntaxFacts, ReferenceLocation referenceLocation, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
32protected sealed override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
29protected override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
53Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (5)
50Document document, SyntaxEditor editor, SemanticModel semanticModel, 124Document document, SyntaxEditor editor, ImmutableArray<Diagnostic> diagnostics, 137Document document, SyntaxEditor editor, Diagnostic diagnostic, 159SyntaxEditor editor, SemanticModel semanticModel, 222SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
30Document document, SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (1)
31Document document, SyntaxEditor editor, SemanticModel semanticModel,
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
65SyntaxEditor editor, CancellationToken cancellationToken) 188var editor = new SyntaxEditor(node, solutionServices);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
33SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryParentheses\AbstractRemoveUnnecessaryParenthesesCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
40protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
47protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 70SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
45SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (8)
92protected abstract void InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(TSwitchCaseBlockSyntax switchCaseBlock, SyntaxEditor editor, TLocalDeclarationStatementSyntax declarationStatement); 103SyntaxEditor editor, 122protected virtual SyntaxNode? TryUpdateParentOfUpdatedNode(SyntaxNode parent, SyntaxNode newNameNode, SyntaxEditor editor, ISyntaxFacts syntaxFacts, SemanticModel semanticModel) => null; 285protected sealed override async Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken) 304var editor = new SyntaxEditor(root, document.Project.Solution.Services); 355SyntaxEditor editor, 390SyntaxEditor editor) 451SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\SimplifyBooleanExpression\SimplifyConditionalCodeFixProvider.cs (1)
40SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
51SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\SimplifyLinqExpression\SimplifyLinqExpressionCodeFixProvider.cs (1)
36SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
66var editor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
41protected override Task FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
39SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (2)
40SyntaxEditor editor, CancellationToken cancellationToken) 58SyntaxEditor editor, SemanticModel semanticModel, INamedTypeSymbol? expressionTypeOpt,
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
62SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseCompoundAssignment\AbstractUseCompoundAssignmentCodeFixProvider.cs (1)
54SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (3)
42SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken); 45Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, 56var nestedEditor = new SyntaxEditor(root, document.Project.Solution.Services);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
60SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken) 102SyntaxEditor editor, 120ISyntaxFactsService syntaxFacts, SyntaxEditor editor, IConditionalOperation ifOperation,
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
49SyntaxEditor editor, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseExplicitTupleName\UseExplicitTupleNameCodeFixProvider.cs (1)
36SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseInferredMemberName\AbstractUseInferredMemberNameCodeFixProvider.cs (2)
20protected abstract void LanguageSpecificRemoveSuggestedNode(SyntaxEditor editor, SyntaxNode node); 33SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsCodeFixProvider.cs (1)
52SyntaxEditor editor, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (3)
70SyntaxEditor editor, CancellationToken cancellationToken) 91SyntaxEditor editor, 141SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
61SyntaxEditor editor,
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
37SyntaxEditor editor, CancellationToken cancellationToken)
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
242var editor = new SyntaxEditor(declaratorTreeRoot, fieldDocument.Project.Solution.Services);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (8)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
37Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (1)
55editor As SyntaxEditor,
src\Analyzers\VisualBasic\CodeFixes\RemoveUnusedParametersAndValues\VisualBasicRemoveUnusedValuesCodeFixProvider.vb (2)
35Protected Overrides Sub InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(switchCaseBlock As CaseBlockSyntax, editor As SyntaxEditor, declarationStatement As LocalDeclarationStatementSyntax) 59Protected Overrides Function GetReplacementNodeForCompoundAssignment(originalCompoundAssignment As SyntaxNode, newAssignmentTarget As SyntaxNode, editor As SyntaxEditor, syntaxFacts As ISyntaxFactsService) As SyntaxNode
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\UseInferredMemberName\VisualBasicUseInferredMemberNameCodeFixProvider.vb (1)
22Protected Overrides Sub LanguageSpecificRemoveSuggestedNode(editor As SyntaxEditor, node As SyntaxNode)
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
36editor As SyntaxEditor, 48editor As SyntaxEditor,
Microsoft.CodeAnalysis.VisualBasic.Features (23)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
45Protected Overrides Sub ConvertToForStatement(model As SemanticModel, foreachInfo As ForEachInfo, editor As SyntaxEditor, cancellationToken As CancellationToken)
EmbeddedLanguages\EmbeddedLanguageUtilities.vb (1)
10Friend Sub AddComment(editor As SyntaxEditor, stringLiteral As SyntaxToken, commentContents As String)
InitializeParameter\InitializeParameterHelpers.vb (1)
48editor As SyntaxEditor,
InitializeParameter\VisualBasicAddParameterCheckCodeRefactoringProvider.vb (1)
40Protected Overrides Sub InsertStatement(editor As SyntaxEditor, functionDeclaration As SyntaxNode, returnsVoid As Boolean, statementToAddAfterOpt As SyntaxNode, statement As StatementSyntax)
InitializeParameter\VisualBasicInitializeMemberFromParameterCodeRefactoringProvider.vb (2)
44Protected Overrides Sub InsertStatement(editor As SyntaxEditor, functionDeclaration As SyntaxNode, returnsVoid As Boolean, statementToAddAfterOpt As SyntaxNode, statement As StatementSyntax) 85Protected Overrides Function TryUpdateTupleAssignment(blockStatement As IBlockOperation, parameter As IParameterSymbol, fieldOrProperty As ISymbol, editor As SyntaxEditor) As Boolean
RemoveSharedFromModuleMembers\VisualBasicRemoveSharedFromModuleMembersCodeFixProvider.vb (1)
62Protected Overrides Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
RemoveUnusedVariable\VisualBasicRemoveUnusedVariableCodeFixProvider.vb (1)
41Protected Overrides Sub RemoveOrReplaceNode(editor As SyntaxEditor, node As SyntaxNode, blockFacts As IBlockFactsService)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (5)
27Public Sub RemoveSetMethod(editor As SyntaxEditor, setMethodDeclaration As SyntaxNode) Implements IReplaceMethodWithPropertyService.RemoveSetMethod 40editor As SyntaxEditor, 65editor As SyntaxEditor, 136Public Sub ReplaceGetReference(editor As SyntaxEditor, nameToken As SyntaxToken, propertyName As String, nameChanged As Boolean) Implements IReplaceMethodWithPropertyService.ReplaceGetReference 165Public Sub ReplaceSetReference(editor As SyntaxEditor, nameToken As SyntaxToken, propertyName As String, nameChanged As Boolean) Implements IReplaceMethodWithPropertyService.ReplaceSetReference
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (2)
180Public Sub InsertElseIfClause(editor As SyntaxEditor, afterIfOrElseIf As SyntaxNode, elseIfClause As SyntaxNode) Implements IIfLikeStatementGenerator.InsertElseIfClause 196Public Sub RemoveElseIfClause(editor As SyntaxEditor, elseIfClause As SyntaxNode) Implements IIfLikeStatementGenerator.RemoveElseIfClause
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
37Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryCast\VisualBasicRemoveUnnecessaryCastCodeFixProvider.vb (1)
55editor As SyntaxEditor,
src\Analyzers\VisualBasic\CodeFixes\RemoveUnusedParametersAndValues\VisualBasicRemoveUnusedValuesCodeFixProvider.vb (2)
35Protected Overrides Sub InsertAtStartOfSwitchCaseBlockForDeclarationInCaseLabelOrClause(switchCaseBlock As CaseBlockSyntax, editor As SyntaxEditor, declarationStatement As LocalDeclarationStatementSyntax) 59Protected Overrides Function GetReplacementNodeForCompoundAssignment(originalCompoundAssignment As SyntaxNode, newAssignmentTarget As SyntaxNode, editor As SyntaxEditor, syntaxFacts As ISyntaxFactsService) As SyntaxNode
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
35Protected Overrides Async Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
src\Analyzers\VisualBasic\CodeFixes\UseInferredMemberName\VisualBasicUseInferredMemberNameCodeFixProvider.vb (1)
22Protected Overrides Sub LanguageSpecificRemoveSuggestedNode(editor As SyntaxEditor, node As SyntaxNode)
src\Analyzers\VisualBasic\CodeFixes\UseIsNotExpression\VisualBasicUseIsNotExpressionCodeFixProvider.vb (2)
36editor As SyntaxEditor, 48editor As SyntaxEditor,
Microsoft.CodeAnalysis.Workspaces (47)
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (4)
57Task FixAllAsync(SyntaxEditor editor) 67Func<SyntaxEditor, Task> editAsync, 71var editor = new SyntaxEditor(root, document.Project.Solution.Services); 82SyntaxEditor editor,
Editing\SyntaxEditor.cs (4)
61/// Creates a new <see cref="SyntaxEditor"/> instance. 70/// Creates a new <see cref="SyntaxEditor"/> instance. 78/// Creates a new <see cref="SyntaxEditor"/> instance. 93/// The <see cref="SyntaxNode"/> that was specified when the <see cref="SyntaxEditor"/> was constructed.
Editing\SyntaxEditorExtensions.cs (23)
13public static void SetAccessibility(this SyntaxEditor editor, SyntaxNode declaration, Accessibility accessibility) 16public static void SetModifiers(this SyntaxEditor editor, SyntaxNode declaration, DeclarationModifiers modifiers) 19internal static void RemoveAllAttributes(this SyntaxEditor editor, SyntaxNode declaration) 22internal static void RemoveAllComments(this SyntaxEditor editor, SyntaxNode declaration) 25internal static void RemoveAllTypeInheritance(this SyntaxEditor editor, SyntaxNode declaration) 28public static void SetName(this SyntaxEditor editor, SyntaxNode declaration, string name) 31public static void SetType(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode type) 34public static void SetTypeParameters(this SyntaxEditor editor, SyntaxNode declaration, IEnumerable<string> typeParameters) 37public static void SetTypeConstraint(this SyntaxEditor editor, SyntaxNode declaration, string typeParameterName, SpecialTypeConstraintKind kind, IEnumerable<SyntaxNode> types) 40public static void SetExpression(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode expression) 43public static void SetStatements(this SyntaxEditor editor, SyntaxNode declaration, IEnumerable<SyntaxNode> statements) 46public static void SetGetAccessorStatements(this SyntaxEditor editor, SyntaxNode declaration, IEnumerable<SyntaxNode> statements) 49public static void SetSetAccessorStatements(this SyntaxEditor editor, SyntaxNode declaration, IEnumerable<SyntaxNode> statements) 52public static void AddParameter(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode parameter) 55public static void InsertParameter(this SyntaxEditor editor, SyntaxNode declaration, int index, SyntaxNode parameter) 58public static void AddAttribute(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode attribute) 61public static void AddReturnAttribute(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode attribute) 64public static void AddAttributeArgument(this SyntaxEditor editor, SyntaxNode attributeDeclaration, SyntaxNode attributeArgument) 67public static void AddMember(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode member) 70public static void InsertMembers(this SyntaxEditor editor, SyntaxNode declaration, int index, IEnumerable<SyntaxNode> members) 73public static void AddInterfaceType(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode interfaceType) 76public static void AddBaseType(this SyntaxEditor editor, SyntaxNode declaration, SyntaxNode baseType) 79internal static void RemovePrimaryConstructor(this SyntaxEditor editor, SyntaxNode declaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (3)
41SyntaxEditor editor, 60SyntaxEditor editor, 87var subEditor = new SyntaxEditor(currentRoot, solutionServices);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (3)
71Func<SyntaxEditor, Task> editAsync, 75var editor = new SyntaxEditor(root, document.Project.Solution.Services); 89Document document, ImmutableArray<Diagnostic> diagnostics, SyntaxEditor editor, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
19SyntaxEditor editor,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (6)
27this SyntaxEditor editor, Document document, 50this SyntaxEditor editor, Document document, 73this SyntaxEditor editor, Document document, 94this SyntaxEditor editor, Document document, 117this SyntaxEditor editor, Document document, 151this SyntaxEditor editor, Document document,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (3)
83var editor = new SyntaxEditor(root, document.Project.Solution.Services); 117Document document, State state, SyntaxEditor editor, SyntaxAnnotation warningAnnotation, CancellationToken cancellationToken) 158Document document, State state, SyntaxEditor editor, SyntaxAnnotation warningAnnotation)
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
Editing\SyntaxEditorTests.cs (10)
35private SyntaxEditor GetEditor(SyntaxNode root) 50var editor = GetEditor(cu); 76var editor = GetEditor(cu); 101var editor = GetEditor(cu); 128var editor = GetEditor(cu); 155var editor = GetEditor(cu); 176var editor = GetEditor(cu); 222var editor = GetEditor(cu); 266var editor = GetEditor(cu); 311var editor = GetEditor(cu);