Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.AttributeLists
23 references to AttributeLists
Microsoft.CodeAnalysis.CSharp (12)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
613
return SkipAttributes(syntax, constructorSyntax.
AttributeLists
, constructorSyntax.Modifiers, constructorSyntax.Identifier, type: null);
Symbols\Source\SourceConstructorSymbol.cs (1)
232
return this.GetSyntax().
AttributeLists
;
Syntax.xml.Main.Generated.cs (1)
2068
=> node.Update(VisitList(node.
AttributeLists
), VisitList(node.Modifiers), VisitToken(node.Identifier), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (ConstructorInitializerSyntax?)Visit(node.Initializer), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (9)
12791
if (attributeLists != this.
AttributeLists
|| modifiers != this.Modifiers || identifier != this.Identifier || parameterList != this.ParameterList || initializer != this.Initializer || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
12804
public new ConstructorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.
AttributeLists
, modifiers, this.Identifier, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12805
public ConstructorDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.
AttributeLists
, this.Modifiers, identifier, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12807
public new ConstructorDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.
AttributeLists
, this.Modifiers, this.Identifier, parameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12808
public ConstructorDeclarationSyntax WithInitializer(ConstructorInitializerSyntax? initializer) => Update(this.
AttributeLists
, this.Modifiers, this.Identifier, this.ParameterList, initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12810
public new ConstructorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.
AttributeLists
, this.Modifiers, this.Identifier, this.ParameterList, this.Initializer, body, this.ExpressionBody, this.SemicolonToken);
12812
public new ConstructorDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.
AttributeLists
, this.Modifiers, this.Identifier, this.ParameterList, this.Initializer, this.Body, expressionBody, this.SemicolonToken);
12814
public new ConstructorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.
AttributeLists
, this.Modifiers, this.Identifier, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, semicolonToken);
12817
public new ConstructorDeclarationSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
296
if (primaryConstructor.Parameters.Length == 0 && primaryConstructorDeclaration.
AttributeLists
.Count == 0)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
161
constructorDeclaration.
AttributeLists
.Select(
Microsoft.CodeAnalysis.CSharp.Features (3)
Organizing\Organizers\ConstructorDeclarationOrganizer.cs (1)
29
return syntax.Update(syntax.
AttributeLists
,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
296
if (primaryConstructor.Parameters.Length == 0 && primaryConstructorDeclaration.
AttributeLists
.Count == 0)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
161
constructorDeclaration.
AttributeLists
.Select(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
13485
Assert.Equal(default, node.
AttributeLists
);
13493
var newNode = node.WithAttributeLists(node.
AttributeLists
).WithModifiers(node.Modifiers).WithIdentifier(node.Identifier).WithParameterList(node.ParameterList).WithInitializer(node.Initializer).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (2)
3506
Assert.Equal(0, cn.
AttributeLists
.Count);
3541
Assert.Equal(0, cn.
AttributeLists
.Count);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
286
ctorDecl.
AttributeLists
.Any(),
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3401
var newAttributeLists = constructor.
AttributeLists
.Insert(index, (AttributeListSyntax)list);