3 overrides of AccessorList
Microsoft.CodeAnalysis.CSharp (3)
Syntax.xml.Syntax.Generated.cs (3)
13080public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 5); 13242public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 6); 13354public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 6);
59 references to AccessorList
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourcePropertySymbol.cs (7)
158syntax.AccessorList, 241isExpressionBodied = syntax.AccessorList is null; 251foreach (var accessor in syntax.AccessorList!.Accessors) 345foreach (var accessor in syntax.AccessorList!.Accessors) 359foreach (var accessor in syntax.AccessorList!.Accessors) 506if (syntax.AccessorList is null && arrowExpression != null) 521Debug.Assert(!(syntax.AccessorList is null && GetArrowExpression(syntax) != null));
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
166var getAccessor = GetSingleGetAccessor(declaration.AccessorList);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax basePropertyDeclaration && basePropertyDeclaration.AccessorList != null && 44basePropertyDeclaration.AccessorList.Accessors.All(a => a.Body == null) && 228if (previousProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true && 229nextProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
72var currentAccessorList = currentProperty.AccessorList;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\CompletionUtilities.cs (1)
218if (propertyDeclaration.AccessorList is { Accessors: [var firstAccessor, ..] })
LineSeparators\CSharpLineSeparatorService.cs (3)
152if (baseProperty?.AccessorList == null) 155return baseProperty.AccessorList.OpenBraceToken.IsMissing || 156baseProperty.AccessorList.CloseBraceToken.IsMissing;
SolutionCrawler\CSharpDocumentDifferenceService.cs (2)
29return property.AccessorList != null && property.AccessorList.Span.Contains(span);
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
166var getAccessor = GetSingleGetAccessor(declaration.AccessorList);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
72var currentAccessorList = currentProperty.AccessorList;
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2705=> (declaration as BasePropertyDeclarationSyntax)?.AccessorList;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax basePropertyDeclaration && basePropertyDeclaration.AccessorList != null && 44basePropertyDeclaration.AccessorList.Accessors.All(a => a.Body == null) && 228if (previousProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true && 229nextProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;
Microsoft.VisualStudio.LanguageServices.CSharp (23)
CodeModel\CSharpCodeModelService.cs (14)
1518if (basePropertyDeclaration.AccessorList != null) 1520foreach (var accessor in basePropertyDeclaration.AccessorList.Accessors) 2314if (member is BasePropertyDeclarationSyntax property && property.AccessorList != null) 2317foreach (var accessor in property.AccessorList.Accessors) 2332var updatedAccessorList = property.AccessorList.WithAccessors([.. updatedAccessors]); 2333member = property.ReplaceNode(property.AccessorList, updatedAccessorList); 2354if (member is BasePropertyDeclarationSyntax property && property.AccessorList != null) 2357foreach (var accessor in property.AccessorList.Accessors) 2372var updatedAccessorList = property.AccessorList.WithAccessors([.. updatedAccessors]); 2373member = property.ReplaceNode(property.AccessorList, updatedAccessorList); 2685var hasGetter = property.AccessorList != null && property.AccessorList.Accessors.Any(SyntaxKind.GetAccessorDeclaration); 2686var hasSetter = property.AccessorList != null && property.AccessorList.Accessors.Any(SyntaxKind.SetAccessorDeclaration);
CodeModel\CSharpCodeModelService.NodeLocator.cs (9)
434if (node.AccessorList == null) 439return node.AccessorList.Accessors.FirstOrDefault(); 490if (node.AccessorList != null && !node.AccessorList.OpenBraceToken.IsMissing) 495return GetBodyStartPoint(text, options, node.AccessorList.OpenBraceToken, node.AccessorList.CloseBraceToken, indentation); 1041if (node.AccessorList != null && !node.AccessorList.CloseBraceToken.IsMissing) 1043return GetBodyEndPoint(text, node.AccessorList.CloseBraceToken);
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax basePropertyDeclaration && basePropertyDeclaration.AccessorList != null && 44basePropertyDeclaration.AccessorList.Accessors.All(a => a.Body == null) && 228if (previousProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true && 229nextProperty?.AccessorList?.Accessors.All(a => a.Body == null) == true)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;