32 references to WithAccessorList
Microsoft.CodeAnalysis.CSharp (2)
Syntax.xml.Syntax.Generated.cs (2)
13144internal override BasePropertyDeclarationSyntax WithAccessorListCore(AccessorListSyntax? accessorList) => WithAccessorList(accessorList); 13158return WithAccessorList(accessorList.WithAccessors(accessorList.Accessors.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (2)
54=> declaration.WithAccessorList(accessorListSyntax); 60return declaration.WithAccessorList(null);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
117.WithAccessorList(ConvertToAccessorList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
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\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (2)
54=> declaration.WithAccessorList(accessorListSyntax); 60return declaration.WithAccessorList(null);
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
117.WithAccessorList(ConvertToAccessorList(
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
136propertyDeclaration = propertyDeclaration.WithAccessorList(propertyDeclaration.AccessorList.RemoveNode(oldInitAccessor, SyntaxRemoveOptions.KeepNoTrivia)); 139return propertyDeclaration.WithAccessorList(propertyDeclaration.AccessorList!.AddAccessors(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.cs (1)
13540var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithType(node.Type).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithIdentifier(node.Identifier).WithAccessorList(node.AccessorList).WithExpressionBody(node.ExpressionBody).WithInitializer(node.Initializer).WithSemicolonToken(node.SemicolonToken);
Syntax\SyntaxFactoryTests.cs (2)
497.WithAccessorList( 520.WithAccessorList(
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; 842.WithAccessorList(WithoutBodies(property.AccessorList));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
286return propertyDeclaration.WithAccessorList(
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1465.WithAccessorList(
Microsoft.DotNet.ApiDiff (1)
SyntaxRewriter\RemoveBodySyntaxRewriter.cs (1)
97var result = node.WithAccessorList(GetEmptiedAccessors(node.AccessorList));
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
207declaration = declaration.WithAccessorList(null)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
286return propertyDeclaration.WithAccessorList(
System.Text.RegularExpressions.Generator (3)
UpgradeToGeneratedRegexCodeFixer.cs (3)
155.WithAccessorList(SyntaxFactory.AccessorList( 200.WithAccessorList(SyntaxFactory.AccessorList( 245.WithAccessorList(SyntaxFactory.AccessorList(