Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.AttributeLists
50 references to AttributeLists
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
295
foreach (var attributeList in method.
AttributeLists
)
Microsoft.CodeAnalysis.CSharp (16)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
599
return SkipAttributes(syntax, methodSyntax.
AttributeLists
, methodSyntax.Modifiers, keyword: default, methodSyntax.ReturnType);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
427
return this.GetSyntax().
AttributeLists
;
Syntax.xml.Main.Generated.cs (1)
2059
=> node.Update(VisitList(node.
AttributeLists
), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (12)
12366
if (attributeLists != this.
AttributeLists
|| modifiers != this.Modifiers || returnType != this.ReturnType || explicitInterfaceSpecifier != this.ExplicitInterfaceSpecifier || identifier != this.Identifier || typeParameterList != this.TypeParameterList || parameterList != this.ParameterList || constraintClauses != this.ConstraintClauses || body != this.Body || expressionBody != this.ExpressionBody || semicolonToken != this.SemicolonToken)
12379
public new MethodDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.
AttributeLists
, modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12380
public MethodDeclarationSyntax WithReturnType(TypeSyntax returnType) => Update(this.
AttributeLists
, this.Modifiers, returnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12381
public MethodDeclarationSyntax WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, explicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12382
public MethodDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12383
public MethodDeclarationSyntax WithTypeParameterList(TypeParameterListSyntax? typeParameterList) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, typeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12385
public new MethodDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, parameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12386
public MethodDeclarationSyntax WithConstraintClauses(SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, constraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12388
public new MethodDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, body, this.ExpressionBody, this.SemicolonToken);
12390
public new MethodDeclarationSyntax WithExpressionBody(ArrowExpressionClauseSyntax? expressionBody) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, expressionBody, this.SemicolonToken);
12392
public new MethodDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.
AttributeLists
, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, semicolonToken);
12395
public new MethodDeclarationSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
Syntax\LookupPosition.cs (1)
216
if (IsInAttributeSpecification(position, methodDecl.
AttributeLists
))
Microsoft.CodeAnalysis.CSharp.Features (3)
Organizing\Organizers\MethodDeclarationOrganizer.cs (1)
30
attributeLists: syntax.
AttributeLists
,
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
133
getMethodDeclaration.
AttributeLists
, getMethodDeclaration.Modifiers,
Testing\CSharpTestMethodFinder.cs (1)
29
foreach (var attributeList in method.
AttributeLists
)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
2178
var attribute = methodDecl.
AttributeLists
[0].Attributes[0];
2223
var attribute = methodDecl.
AttributeLists
[0].Attributes[0];
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Generated\Syntax.Test.xml.Generated.cs (2)
13425
Assert.Equal(default, node.
AttributeLists
);
13436
var newNode = node.WithAttributeLists(node.
AttributeLists
).WithModifiers(node.Modifiers).WithReturnType(node.ReturnType).WithExplicitInterfaceSpecifier(node.ExplicitInterfaceSpecifier).WithIdentifier(node.Identifier).WithTypeParameterList(node.TypeParameterList).WithParameterList(node.ParameterList).WithConstraintClauses(node.ConstraintClauses).WithBody(node.Body).WithExpressionBody(node.ExpressionBody).WithSemicolonToken(node.SemicolonToken);
Parsing\DeclarationParsingTests.cs (15)
2500
Assert.Equal(0, ms.
AttributeLists
.Count);
2546
Assert.Equal(0, ms.
AttributeLists
.Count);
2592
Assert.Equal(0, ms.
AttributeLists
.Count);
2695
Assert.Equal(0, ms.
AttributeLists
.Count);
2763
Assert.Equal(0, ms.
AttributeLists
.Count);
2810
Assert.Equal(0, ms.
AttributeLists
.Count);
2857
Assert.Equal(0, ms.
AttributeLists
.Count);
3009
Assert.Equal(0, ms.
AttributeLists
.Count);
3061
Assert.Equal(0, ms.
AttributeLists
.Count);
3122
Assert.Equal(0, ms.
AttributeLists
.Count);
3187
Assert.Equal(0, ms.
AttributeLists
.Count);
3261
Assert.Equal(0, ms.
AttributeLists
.Count);
3326
Assert.Equal(0, ms.
AttributeLists
.Count);
3378
Assert.Equal(0, ms.
AttributeLists
.Count);
3424
Assert.Equal(0, ms.
AttributeLists
.Count);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
359
method.
AttributeLists
.Any(),
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
108
foreach (AttributeListSyntax mal in method.
AttributeLists
)
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
605
foreach (var mal in methodSyntax.
AttributeLists
)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3386
var newAttributeLists = method.
AttributeLists
.Insert(index, (AttributeListSyntax)list);
QuarantineTools.Tests (7)
QuarantineScriptTests.cs (7)
334
if (method.
AttributeLists
.Count == 0)
340
foreach (var list in method.
AttributeLists
)
361
foreach (var list in method.
AttributeLists
)
380
if (method.
AttributeLists
.Count > 0)
383
var last = method.
AttributeLists
[method.
AttributeLists
.Count - 1];
400
var newLists = method.
AttributeLists
.Add(newList);