Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.AttributeLists
38 references to AttributeLists
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
295
foreach (var attributeList in method.
AttributeLists
)
Microsoft.CodeAnalysis.CSharp (16)
_generated\0\Syntax.xml.Main.Generated.cs (1)
2071
=> 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));
_generated\2\Syntax.xml.Syntax.Generated.cs (12)
12413
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)
12426
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);
12427
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);
12428
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);
12429
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);
12430
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);
12432
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);
12433
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);
12435
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);
12437
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);
12439
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);
12442
public new MethodDeclarationSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
599
return SkipAttributes(syntax, methodSyntax.
AttributeLists
, methodSyntax.Modifiers, keyword: default, methodSyntax.ReturnType);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
429
return this.GetSyntax().
AttributeLists
;
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.Workspaces (1)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
353
method.
AttributeLists
.Any(),
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
106
foreach (AttributeListSyntax mal in method.
AttributeLists
)
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
605
foreach (var mal in methodSyntax.
AttributeLists
)
QuarantineTools.Tests (14)
ActiveIssueTests.cs (7)
390
if (method.
AttributeLists
.Count == 0)
396
foreach (var list in method.
AttributeLists
)
417
foreach (var list in method.
AttributeLists
)
436
if (method.
AttributeLists
.Count > 0)
439
var last = method.
AttributeLists
[method.
AttributeLists
.Count - 1];
456
var newLists = method.
AttributeLists
.Add(newList);
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);
SuperFileCheck (1)
Program.cs (1)
591
return methodDecl.
AttributeLists
.ToString().Contains("MethodImplOptions.NoInlining");