Base:
property
AccessorList
Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax.AccessorList
31 references to AccessorList
Microsoft.CodeAnalysis.CSharp (13)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2098
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.ThisKeyword), (BracketedParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (AccessorListSyntax?)Visit(node.
AccessorList
), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (10)
13443
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || type != this.Type || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || thisKeyword != this.ThisKeyword || parameterList != this.ParameterList || accessorList != this.
AccessorList
|| expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
13454
public new IndexerDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13456
public new IndexerDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13458
public new IndexerDeclarationSyntax WithType(TypeSyntax type) => Update(this.AttributeLists, this.Modifiers, type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13460
public new IndexerDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.AttributeLists, this.Modifiers, this.Type, explicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13461
public IndexerDeclarationSyntax WithThisKeyword(SyntaxToken thisKeyword) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, thisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13462
public IndexerDeclarationSyntax WithParameterList(BracketedParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, parameterList, this.
AccessorList
, this.ExpressionBody, this.SemicolonToken);
13465
public IndexerDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, expressionBody, this.SemicolonToken);
13466
public IndexerDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.ThisKeyword, this.ParameterList, this.
AccessorList
, this.ExpressionBody, semicolonToken);
13476
var accessorList = this.
AccessorList
?? SyntaxFactory.AccessorList();
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
261
if (t.
AccessorList
!= null)
263
foreach (var decl in t.
AccessorList
.Accessors)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (2)
36
=> GetBodyFromSingleGetAccessor(declaration.
AccessorList
);
87
var getAccessor = GetSingleGetAccessor(declaration.
AccessorList
);
Microsoft.CodeAnalysis.CSharp.Features (12)
EditAndContinue\BreakpointSpans.cs (2)
368
Contract.ThrowIfNull(indexer.
AccessorList
);
371
return CreateSpanForAccessors(indexer.
AccessorList
.Accessors, position);
EditAndContinue\SyntaxUtilities.cs (1)
148
return TryGetEffectiveGetterBody(indexer.ExpressionBody, indexer.
AccessorList
);
Organizing\Organizers\IndexerDeclarationOrganizer.cs (1)
36
accessorList: syntax.
AccessorList
,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (2)
36
=> GetBodyFromSingleGetAccessor(declaration.
AccessorList
);
87
var getAccessor = GetSingleGetAccessor(declaration.
AccessorList
);
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
261
if (t.
AccessorList
!= null)
263
foreach (var decl in t.
AccessorList
.Accessors)
Structure\Providers\IndexerDeclarationStructureProvider.cs (4)
24
if (indexerDeclaration.
AccessorList
== null ||
25
indexerDeclaration.
AccessorList
.IsMissing ||
26
indexerDeclaration.
AccessorList
.OpenBraceToken.IsMissing ||
27
indexerDeclaration.
AccessorList
.CloseBraceToken.IsMissing)
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
454
indexer.WithAccessorList(CreateAccessorList(indexer.
AccessorList
, accessorDeclarations))
666
return (ind.
AccessorList
!= null) ? ind.WithAccessorList(WithBodies(ind.
AccessorList
)) : ind;
841
.WithAccessorList(WithoutBodies(indexer.
AccessorList
));