Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.BaseParameterSyntax.AttributeLists
68 references to AttributeLists
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
360
foreach (var attributeList in parameter.
AttributeLists
.OfType<AttributeListSyntax>())
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Lambda.cs (2)
154
checkAttributes(syntax, p.
AttributeLists
, diagnostics);
207
attributesBuilder.Add(syntax.Kind() == SyntaxKind.ParenthesizedLambdaExpression ? p.
AttributeLists
: default);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
397
AddAttributes(parameter.
AttributeLists
, builder);
Symbols\Source\LocalFunctionSymbol.cs (1)
82
ReportAttributesDisallowed(param.
AttributeLists
, diagnostics);
Symbols\Source\SourceComplexParameterSymbol.cs (2)
332
var attributes = parameterSyntax.
AttributeLists
.Node;
514
return (syntax != null) ? syntax.
AttributeLists
: default(SyntaxList<AttributeListSyntax>);
Symbols\Source\SourceParameterSymbol.cs (1)
81
(syntax.
AttributeLists
.Count == 0) &&
Syntax.xml.Main.Generated.cs (1)
2101
=> node.Update(VisitList(node.
AttributeLists
), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type), VisitToken(node.Identifier), (EqualsValueClauseSyntax?)Visit(node.Default));
Syntax.xml.Syntax.Generated.cs (7)
3291
public SimpleLambdaExpressionSyntax AddParameterAttributeLists(params AttributeListSyntax[] items) => WithParameter(this.Parameter.WithAttributeLists(this.Parameter.
AttributeLists
.AddRange(items)));
13821
if (attributeLists != this.
AttributeLists
|| modifiers != this.Modifiers || type != this.Type || identifier != this.Identifier || @default != this.Default)
13834
public new ParameterSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.
AttributeLists
, modifiers, this.Type, this.Identifier, this.Default);
13836
public new ParameterSyntax WithType(TypeSyntax? type) => Update(this.
AttributeLists
, this.Modifiers, type, this.Identifier, this.Default);
13837
public ParameterSyntax WithIdentifier(SyntaxToken identifier) => Update(this.
AttributeLists
, this.Modifiers, this.Type, identifier, this.Default);
13838
public ParameterSyntax WithDefault(EqualsValueClauseSyntax? @default) => Update(this.
AttributeLists
, this.Modifiers, this.Type, this.Identifier, @default);
13841
public new ParameterSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
110
if (implicitLambda.ParameterList.Parameters is not ([{
AttributeLists
.Count: 0, Modifiers.Count: 0 } parameter]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
164
ParameterSyntax parameter => parameter.
AttributeLists
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
223
if (parameterNode.
AttributeLists
is [var firstAttribute, ..])
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
425
var newAttributeLists = RemoveAttributeFromAttributeLists(parameter.
AttributeLists
, attributeToRemove, out positionOfRemovedNode, out triviaOfRemovedNode);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
110
if (implicitLambda.ParameterList.Parameters is not ([{
AttributeLists
.Count: 0, Modifiers.Count: 0 } parameter]))
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
397
AddAttributes(parameter.
AttributeLists
, builder);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Generated\Syntax.Test.xml.Generated.cs (2)
13646
Assert.Equal(default, node.
AttributeLists
);
13651
var newNode = node.WithAttributeLists(node.
AttributeLists
).WithModifiers(node.Modifiers).WithType(node.Type).WithIdentifier(node.Identifier).WithDefault(node.Default);
Parsing\DeclarationParsingTests.cs (29)
2162
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2197
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2232
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2239
Assert.Equal(0, ds.ParameterList.Parameters[1].
AttributeLists
.Count);
2274
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2310
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2346
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2383
Assert.Equal(0, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2416
Assert.Equal(1, ds.ParameterList.Parameters[0].
AttributeLists
.Count);
2417
Assert.Equal("[attr]", ds.ParameterList.Parameters[0].
AttributeLists
[0].ToString());
3018
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
3072
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
3079
Assert.Equal(0, ms.ParameterList.Parameters[1].
AttributeLists
.Count);
3133
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
3198
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
3335
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
4964
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5031
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5099
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5168
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5175
Assert.Equal(0, ps.ParameterList.Parameters[1].
AttributeLists
.Count);
5244
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5311
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5318
Assert.Equal(0, ps.ParameterList.Parameters[1].
AttributeLists
.Count);
5391
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5398
Assert.Equal(0, ps.ParameterList.Parameters[1].
AttributeLists
.Count);
5505
Assert.Equal(0, ps.ParameterList.Parameters[0].
AttributeLists
.Count);
5566
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
5614
Assert.Equal(0, ms.ParameterList.Parameters[0].
AttributeLists
.Count);
Syntax\SyntaxNodeTests.cs (1)
4051
var newParameter = parameter.Update(parameter.
AttributeLists
, parameter.Modifiers, parameter.Type, parameter.Identifier, parameter.Default);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1207
ParameterSyntax parameter => parameter.
AttributeLists
,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
448
parameter.
AttributeLists
.Any(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
164
ParameterSyntax parameter => parameter.
AttributeLists
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
223
if (parameterNode.
AttributeLists
is [var firstAttribute, ..])
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
425
var newAttributeLists = RemoveAttributeFromAttributeLists(parameter.
AttributeLists
, attributeToRemove, out positionOfRemovedNode, out triviaOfRemovedNode);
Microsoft.VisualStudio.LanguageServices.CSharp (6)
CodeModel\CSharpCodeModelService.cs (2)
333
return GetAttributeNodes(parameter.
AttributeLists
);
3446
var newAttributeLists = parameter.
AttributeLists
.Insert(index, (AttributeListSyntax)list);
CodeModel\CSharpCodeModelService.NodeLocator.cs (3)
774
if (node.
AttributeLists
.Count == 0)
1315
if (node.
AttributeLists
.Count == 0)
1320
endPosition = node.
AttributeLists
.Last().GetLastToken().Span.End;
CodeModel\SyntaxNodeExtensions.cs (1)
53
attributeLists = parameter.
AttributeLists
;
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
164
ParameterSyntax parameter => parameter.
AttributeLists
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
223
if (parameterNode.
AttributeLists
is [var firstAttribute, ..])
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
425
var newAttributeLists = RemoveAttributeFromAttributeLists(parameter.
AttributeLists
, attributeToRemove, out positionOfRemovedNode, out triviaOfRemovedNode);