3 overrides of AccessorList
Microsoft.CodeAnalysis.CSharp (3)
_generated\2\Syntax.xml.Syntax.Generated.cs (3)
13127public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 5); 13289public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 6); 13401public override AccessorListSyntax? AccessorList => GetRed(ref this.accessorList, 6);
36 references to AccessorList
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourcePropertySymbol.cs (7)
157syntax.AccessorList, 240isExpressionBodied = syntax.AccessorList is null; 250foreach (var accessor in syntax.AccessorList!.Accessors) 344foreach (var accessor in syntax.AccessorList!.Accessors) 358foreach (var accessor in syntax.AccessorList!.Accessors) 505if (syntax.AccessorList is null && arrowExpression != null) 520Debug.Assert(!(syntax.AccessorList is null && GetArrowExpression(syntax) != null));
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
154var getAccessor = GetSingleGetAccessor(declaration.AccessorList);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax { AccessorList: not null } basePropertyDeclaration && 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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
71var currentAccessorList = currentProperty.AccessorList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\CompletionUtilities.cs (1)
220if (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\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (1)
154var getAccessor = GetSingleGetAccessor(declaration.AccessorList);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
71var currentAccessorList = currentProperty.AccessorList;
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2695=> (declaration as BasePropertyDeclarationSyntax)?.AccessorList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax { AccessorList: not null } basePropertyDeclaration && 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (4)
43if (node is BasePropertyDeclarationSyntax { AccessorList: not null } basePropertyDeclaration && 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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
180var accessorList = baseProperty.AccessorList;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
37=> baseProperty.AccessorList!.Accessors;