28 references to WithAccessorList
ILLink.CodeFixProvider (1)
RequiresUnsafeCodeFixProvider.cs (1)
456.WithAccessorList(accessorList);
Microsoft.CodeAnalysis.CSharp (2)
_generated\2\Syntax.xml.Syntax.Generated.cs (2)
13190internal override BasePropertyDeclarationSyntax WithAccessorListCore(AccessorListSyntax? accessorList) => WithAccessorList(accessorList); 13204return WithAccessorList(accessorList.WithAccessors(accessorList.Accessors.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (2)
54=> declaration.WithAccessorList(accessorListSyntax); 60return declaration.WithAccessorList(null);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
117.WithAccessorList(ConvertToAccessorList(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
286return propertyDeclaration.WithAccessorList(
Microsoft.CodeAnalysis.CSharp.Features (8)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
147.WithAccessorList(null);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (4)
80.WithAccessorList(null); 89.WithAccessorList(null); 106return propertyDeclaration.WithAccessorList(accessorList) 153property = property.WithAccessorList(accessorList);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (2)
54=> declaration.WithAccessorList(accessorListSyntax); 60return declaration.WithAccessorList(null);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
117.WithAccessorList(ConvertToAccessorList(
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
137propertyDeclaration = propertyDeclaration.WithAccessorList(propertyDeclaration.AccessorList.RemoveNode(oldInitAccessor, SyntaxRemoveOptions.KeepNoTrivia)); 140return propertyDeclaration.WithAccessorList(propertyDeclaration.AccessorList!.AddAccessors(
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
449property.WithAccessorList(CreateAccessorList(property.AccessorList, accessorDeclarations)) 662return (prop.AccessorList != null) ? prop.WithAccessorList(WithBodies(prop.AccessorList)) : prop; 835.WithAccessorList(WithoutBodies(property.AccessorList));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
286return propertyDeclaration.WithAccessorList(
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
286return propertyDeclaration.WithAccessorList(
System.Text.RegularExpressions.Generator (3)
UpgradeToGeneratedRegexCodeFixer.cs (3)
179.WithAccessorList(SyntaxFactory.AccessorList( 224.WithAccessorList(SyntaxFactory.AccessorList( 269.WithAccessorList(SyntaxFactory.AccessorList(