1 instantiation of AttributeListSyntax
Microsoft.CodeAnalysis.CSharp (1)
_generated\1\Syntax.xml.Internal.Generated.cs (1)
16027
internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.
AttributeListSyntax
(this, parent, position);
966 references to AttributeListSyntax
ILLink.CodeFixProvider (2)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
156
var nodeWithAttribute = newNode.AddAttributeLists((
AttributeListSyntax
)attribute);
UnsafeModifierCodeFixHelpers.cs (1)
183
private static SyntaxList<
AttributeListSyntax
> GetAttributeLists(SyntaxNode declaration) =>
Microsoft.AspNetCore.App.Analyzers (5)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (4)
171
(previous.IsKind(SyntaxKind.CloseBracketToken) && previous.GetRequiredParent().FirstAncestorOrSelf<
AttributeListSyntax
>() != null) ||
295
foreach (
var
attributeList in method.AttributeLists)
360
foreach (
var
attributeList in parameter.AttributeLists.OfType<
AttributeListSyntax
>())
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (1)
204
if (attribute.Parent is not
AttributeListSyntax
attributeList)
Microsoft.CodeAnalysis.CSharp (745)
_generated\0\Syntax.xml.Main.Generated.cs (104)
492
public virtual TResult? VisitAttributeList(
AttributeListSyntax
node) => this.DefaultVisit(node);
1246
public virtual void VisitAttributeList(
AttributeListSyntax
node) => this.DefaultVisit(node);
1999
public override SyntaxNode? VisitAttributeList(
AttributeListSyntax
node)
3266
public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3286
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3294
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
4007
public static GlobalStatementSyntax GlobalStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, StatementSyntax statement)
4018
public static BlockSyntax Block(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken openBraceToken, SyntaxList<StatementSyntax> statements, SyntaxToken closeBraceToken)
4026
public static BlockSyntax Block(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<StatementSyntax> statements)
4036
public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
4051
public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
4063
public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
4083
public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
4159
public static ExpressionStatementSyntax ExpressionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, SyntaxToken semicolonToken)
4167
public static ExpressionStatementSyntax ExpressionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression)
4175
public static EmptyStatementSyntax EmptyStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken semicolonToken)
4182
public static EmptyStatementSyntax EmptyStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
4190
public static LabeledStatementSyntax LabeledStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, SyntaxToken colonToken, StatementSyntax statement)
4199
public static LabeledStatementSyntax LabeledStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, StatementSyntax statement)
4211
public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4233
public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression)
4243
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, IdentifierNameSyntax? name, SyntaxToken semicolonToken)
4251
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists, IdentifierNameSyntax? name)
4261
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, IdentifierNameSyntax? name, SyntaxToken semicolonToken)
4269
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists, IdentifierNameSyntax? name)
4279
public static ReturnStatementSyntax ReturnStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken returnKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4287
public static ReturnStatementSyntax ReturnStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4297
public static ThrowStatementSyntax ThrowStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken throwKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4305
public static ThrowStatementSyntax ThrowStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4315
public static YieldStatementSyntax YieldStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken yieldKeyword, SyntaxToken returnOrBreakKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4335
public static YieldStatementSyntax YieldStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4353
public static WhileStatementSyntax WhileStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement)
4364
public static WhileStatementSyntax WhileStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax condition, StatementSyntax statement)
4372
public static DoStatementSyntax DoStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken doKeyword, StatementSyntax statement, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, SyntaxToken semicolonToken)
4385
public static DoStatementSyntax DoStatement(SyntaxList<
AttributeListSyntax
> attributeLists, StatementSyntax statement, ExpressionSyntax condition)
4393
public static ForStatementSyntax ForStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken forKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, SeparatedSyntaxList<ExpressionSyntax> initializers, SyntaxToken firstSemicolonToken, ExpressionSyntax? condition, SyntaxToken secondSemicolonToken, SeparatedSyntaxList<ExpressionSyntax> incrementors, SyntaxToken closeParenToken, StatementSyntax statement)
4405
public static ForStatementSyntax ForStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax? declaration, SeparatedSyntaxList<ExpressionSyntax> initializers, ExpressionSyntax? condition, SeparatedSyntaxList<ExpressionSyntax> incrementors, StatementSyntax statement)
4413
public static ForEachStatementSyntax ForEachStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, TypeSyntax type, SyntaxToken identifier, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
4433
public static ForEachStatementSyntax ForEachStatement(SyntaxList<
AttributeListSyntax
> attributeLists, TypeSyntax type, SyntaxToken identifier, ExpressionSyntax expression, StatementSyntax statement)
4445
public static ForEachVariableStatementSyntax ForEachVariableStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, ExpressionSyntax variable, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
4464
public static ForEachVariableStatementSyntax ForEachVariableStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax variable, ExpressionSyntax expression, StatementSyntax statement)
4472
public static UsingStatementSyntax UsingStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, SyntaxToken closeParenToken, StatementSyntax statement)
4488
public static UsingStatementSyntax UsingStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, StatementSyntax statement)
4496
public static FixedStatementSyntax FixedStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken fixedKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax declaration, SyntaxToken closeParenToken, StatementSyntax statement)
4507
public static FixedStatementSyntax FixedStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax declaration, StatementSyntax statement)
4515
public static CheckedStatementSyntax CheckedStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken keyword, BlockSyntax block)
4534
public static CheckedStatementSyntax CheckedStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block)
4552
public static UnsafeStatementSyntax UnsafeStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken unsafeKeyword, BlockSyntax block)
4560
public static UnsafeStatementSyntax UnsafeStatement(SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block)
4570
public static LockStatementSyntax LockStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken lockKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
4581
public static LockStatementSyntax LockStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, StatementSyntax statement)
4589
public static IfStatementSyntax IfStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken ifKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement, ElseClauseSyntax? @else)
4600
public static IfStatementSyntax IfStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax condition, StatementSyntax statement, ElseClauseSyntax? @else)
4620
public static SwitchStatementSyntax SwitchStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
4729
public static TryStatementSyntax TryStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
4737
public static TryStatementSyntax TryStatement(SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
4812
public static CompilationUnitSyntax CompilationUnit(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken endOfFileToken)
4819
public static CompilationUnitSyntax CompilationUnit(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members)
4880
public static NamespaceDeclarationSyntax NamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken openBraceToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
4896
public static NamespaceDeclarationSyntax NamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4904
public static FileScopedNamespaceDeclarationSyntax FileScopedNamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken semicolonToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4913
public static FileScopedNamespaceDeclarationSyntax FileScopedNamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4921
public static
AttributeListSyntax
AttributeList(SyntaxToken openBracketToken, AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes, SyntaxToken closeBracketToken)
4925
return (
AttributeListSyntax
)Syntax.InternalSyntax.SyntaxFactory.AttributeList((Syntax.InternalSyntax.SyntaxToken)openBracketToken.Node!, target == null ? null : (Syntax.InternalSyntax.AttributeTargetSpecifierSyntax)target.Green, attributes.Node.ToGreenSeparatedList<Syntax.InternalSyntax.AttributeSyntax>(), (Syntax.InternalSyntax.SyntaxToken)closeBracketToken.Node!).CreateRed();
4929
public static
AttributeListSyntax
AttributeList(AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes)
4933
public static
AttributeListSyntax
AttributeList(SeparatedSyntaxList<AttributeSyntax> attributes = default)
5010
public static TypeParameterSyntax TypeParameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken varianceKeyword, SyntaxToken identifier)
5032
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5058
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5084
public static UnionDeclarationSyntax UnionDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5110
public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5136
public static RecordDeclarationSyntax RecordDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken classOrStructKeyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5174
public static RecordDeclarationSyntax RecordDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
5194
public static EnumDeclarationSyntax EnumDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken enumKeyword, SyntaxToken identifier, BaseListSyntax? baseList, SyntaxToken openBraceToken, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5220
public static DelegateDeclarationSyntax DelegateDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken delegateKeyword, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken semicolonToken)
5231
public static DelegateDeclarationSyntax DelegateDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses)
5243
public static EnumMemberDeclarationSyntax EnumMemberDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
5258
public static ExtensionBlockDeclarationSyntax ExtensionBlockDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5283
public static ExtensionBlockDeclarationSyntax ExtensionBlockDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
5432
public static FieldDeclarationSyntax FieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
5440
public static FieldDeclarationSyntax FieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
5448
public static EventFieldDeclarationSyntax EventFieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
5457
public static EventFieldDeclarationSyntax EventFieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
5477
public static MethodDeclarationSyntax MethodDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5492
public static MethodDeclarationSyntax MethodDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5504
public static OperatorDeclarationSyntax OperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorKeyword, SyntaxToken checkedKeyword, SyntaxToken operatorToken, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5564
public static OperatorDeclarationSyntax OperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorToken, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5572
public static ConversionOperatorDeclarationSyntax ConversionOperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken implicitOrExplicitKeyword, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorKeyword, SyntaxToken checkedKeyword, TypeSyntax type, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5599
public static ConversionOperatorDeclarationSyntax ConversionOperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken implicitOrExplicitKeyword, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, TypeSyntax type, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5607
public static ConstructorDeclarationSyntax ConstructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5621
public static ConstructorDeclarationSyntax ConstructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5665
public static DestructorDeclarationSyntax DestructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken tildeToken, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5680
public static DestructorDeclarationSyntax DestructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5692
public static PropertyDeclarationSyntax PropertyDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer, SyntaxToken semicolonToken)
5706
public static PropertyDeclarationSyntax PropertyDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer)
5730
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, SyntaxToken semicolonToken)
5745
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList)
5757
public static IndexerDeclarationSyntax IndexerDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken thisKeyword, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5772
public static IndexerDeclarationSyntax IndexerDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody)
5792
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5824
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5868
public static ParameterSyntax Parameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type, SyntaxToken identifier, EqualsValueClauseSyntax? @default)
5881
public static FunctionPointerParameterSyntax FunctionPointerParameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type)
5892
public static IncompleteMemberSyntax IncompleteMember(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type)
_generated\2\Syntax.xml.Syntax.Generated.cs (447)
3101
public AnonymousFunctionExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => AddBlockAttributeListsCore(items);
3102
internal abstract AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items);
3210
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3211
public new AnonymousMethodExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
3224
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
3225
public LambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
3226
internal abstract LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
3228
public LambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
3229
internal abstract LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
3242
public new AnonymousFunctionExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => AddBlockAttributeListsCore(items);
3266
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
3318
public SimpleLambdaExpressionSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3330
internal override LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
3331
public new SimpleLambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Parameter, this.ArrowToken, this.Block, this.ExpressionBody);
3342
internal override LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
3343
public new SimpleLambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
3346
public SimpleLambdaExpressionSyntax AddParameterAttributeLists(params
AttributeListSyntax
[] items) => WithParameter(this.Parameter.WithAttributeLists(this.Parameter.AttributeLists.AddRange(items)));
3348
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3349
public new SimpleLambdaExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items)
3424
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
3480
public ParenthesizedLambdaExpressionSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3492
internal override LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
3493
public new ParenthesizedLambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ParameterList, this.ArrowToken, this.Block, this.ExpressionBody);
3505
internal override LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
3506
public new ParenthesizedLambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
3510
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3511
public new ParenthesizedLambdaExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items)
6269
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6301
public GlobalStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, StatementSyntax statement)
6313
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6314
public new GlobalStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Statement);
6319
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6320
public new GlobalStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6333
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
6334
public StatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
6335
internal abstract StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
6337
public StatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
6338
internal abstract StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
6357
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6384
public BlockSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken openBraceToken, SyntaxList<StatementSyntax> statements, SyntaxToken closeBraceToken)
6396
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6397
public new BlockSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.OpenBraceToken, this.Statements, this.CloseBraceToken);
6402
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6403
public new BlockSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6428
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6493
public LocalFunctionStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
6505
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6506
public new LocalFunctionStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
6517
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6518
public new LocalFunctionStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6527
public LocalFunctionStatementSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
6555
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6608
public LocalDeclarationStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
6620
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6621
public new LocalDeclarationStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.UsingKeyword, this.Modifiers, this.Declaration, this.SemicolonToken);
6628
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6629
public new LocalDeclarationStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6959
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6984
public ExpressionStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, SyntaxToken semicolonToken)
6996
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6997
public new ExpressionStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Expression, this.SemicolonToken);
7001
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7002
public new ExpressionStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7020
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7031
public EmptyStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken semicolonToken)
7043
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7044
public new EmptyStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.SemicolonToken);
7047
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7048
public new EmptyStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7068
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7097
public LabeledStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, SyntaxToken colonToken, StatementSyntax statement)
7109
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7110
public new LabeledStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Identifier, this.ColonToken, this.Statement);
7115
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7116
public new LabeledStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7140
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7188
public GotoStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7200
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7201
public new GotoStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken);
7207
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7208
public new GotoStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7227
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7254
public BreakStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, IdentifierNameSyntax? name, SyntaxToken semicolonToken)
7266
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7267
public new BreakStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.BreakKeyword, this.Name, this.SemicolonToken);
7272
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7273
public new BreakStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7292
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7319
public ContinueStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, IdentifierNameSyntax? name, SyntaxToken semicolonToken)
7331
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7332
public new ContinueStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ContinueKeyword, this.Name, this.SemicolonToken);
7337
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7338
public new ContinueStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7357
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7384
public ReturnStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken returnKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7396
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7397
public new ReturnStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ReturnKeyword, this.Expression, this.SemicolonToken);
7402
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7403
public new ReturnStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7422
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7449
public ThrowStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken throwKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7461
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7462
public new ThrowStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ThrowKeyword, this.Expression, this.SemicolonToken);
7467
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7468
public new ThrowStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7488
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7517
public YieldStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken yieldKeyword, SyntaxToken returnOrBreakKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7529
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7530
public new YieldStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.YieldKeyword, this.ReturnOrBreakKeyword, this.Expression, this.SemicolonToken);
7536
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7537
public new YieldStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7557
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7590
public WhileStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement)
7602
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7603
public new WhileStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement);
7610
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7611
public new WhileStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7631
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7668
public DoStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken doKeyword, StatementSyntax statement, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, SyntaxToken semicolonToken)
7680
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7681
public new DoStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.DoKeyword, this.Statement, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7690
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7691
public new DoStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7714
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7777
public ForStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken forKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, SeparatedSyntaxList<ExpressionSyntax> initializers, SyntaxToken firstSemicolonToken, ExpressionSyntax? condition, SyntaxToken secondSemicolonToken, SeparatedSyntaxList<ExpressionSyntax> incrementors, SyntaxToken closeParenToken, StatementSyntax statement)
7789
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7790
public new ForStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ForKeyword, this.OpenParenToken, this.Declaration, this.Initializers, this.FirstSemicolonToken, this.Condition, this.SecondSemicolonToken, this.Incrementors, this.CloseParenToken, this.Statement);
7802
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7803
public new ForStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7843
public new CommonForEachStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (CommonForEachStatementSyntax)WithAttributeListsCore(attributeLists);
7845
public new CommonForEachStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (CommonForEachStatementSyntax)AddAttributeListsCore(items);
7866
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7917
public ForEachStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, TypeSyntax type, SyntaxToken identifier, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
7929
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7930
public new ForEachStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.ForEachKeyword, this.OpenParenToken, this.Type, this.Identifier, this.InKeyword, this.Expression, this.CloseParenToken, this.Statement);
7948
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7949
public new ForEachStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7970
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8024
public ForEachVariableStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, ExpressionSyntax variable, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
8036
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8037
public new ForEachVariableStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.ForEachKeyword, this.OpenParenToken, this.Variable, this.InKeyword, this.Expression, this.CloseParenToken, this.Statement);
8054
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8055
public new ForEachVariableStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8076
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8122
public UsingStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, SyntaxToken closeParenToken, StatementSyntax statement)
8134
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8135
public new UsingStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.Expression, this.CloseParenToken, this.Statement);
8144
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8145
public new UsingStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8165
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8198
public FixedStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken fixedKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax declaration, SyntaxToken closeParenToken, StatementSyntax statement)
8210
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8211
public new FixedStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.Statement);
8218
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8219
public new FixedStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8240
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8265
public CheckedStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken keyword, BlockSyntax block)
8277
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8278
public new CheckedStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Keyword, this.Block);
8282
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8283
public new CheckedStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8284
public CheckedStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
8304
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8329
public UnsafeStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken unsafeKeyword, BlockSyntax block)
8341
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8342
public new UnsafeStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.UnsafeKeyword, this.Block);
8346
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8347
public new UnsafeStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8348
public UnsafeStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
8369
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8402
public LockStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken lockKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
8414
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8415
public new LockStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.Statement);
8422
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8423
public new LockStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8447
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8502
public IfStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken ifKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement, ElseClauseSyntax? @else)
8514
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8515
public new IfStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.IfKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement, this.Else);
8523
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8524
public new IfStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8591
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8663
public SwitchStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
8675
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8676
public new SwitchStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.SwitchKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8685
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8686
public new SwitchStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9098
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
9131
public TryStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
9143
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9144
public new TryStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.TryKeyword, this.Block, this.Catches, this.Finally);
9150
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9151
public new TryStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9152
public TryStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9220
public CatchClauseSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9368
public FinallyClauseSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9395
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 2));
9424
public CompilationUnitSyntax Update(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken endOfFileToken)
9438
public CompilationUnitSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(this.Externs, this.Usings, attributeLists, this.Members, this.EndOfFileToken);
9444
public CompilationUnitSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9602
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
9603
public MemberDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
9604
internal abstract MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
9606
public MemberDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
9607
internal abstract MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
9654
public new BaseNamespaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseNamespaceDeclarationSyntax)WithAttributeListsCore(attributeLists);
9657
public new BaseNamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseNamespaceDeclarationSyntax)AddAttributeListsCore(items);
9681
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
9741
public NamespaceDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken openBraceToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
9753
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9754
public new NamespaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.NamespaceKeyword, this.Name, this.OpenBraceToken, this.Externs, this.Usings, this.Members, this.CloseBraceToken, this.SemicolonToken);
9771
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9772
public new NamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9802
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
9850
public FileScopedNamespaceDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken semicolonToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
9862
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9863
public new FileScopedNamespaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.NamespaceKeyword, this.Name, this.SemicolonToken, this.Externs, this.Usings, this.Members);
9878
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9879
public new FileScopedNamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9945
public
AttributeListSyntax
Update(SyntaxToken openBracketToken, AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes, SyntaxToken closeBracketToken)
9949
var
newNode = SyntaxFactory.AttributeList(openBracketToken, target, attributes, closeBracketToken);
9957
public
AttributeListSyntax
WithOpenBracketToken(SyntaxToken openBracketToken) => Update(openBracketToken, this.Target, this.Attributes, this.CloseBracketToken);
9958
public
AttributeListSyntax
WithTarget(AttributeTargetSpecifierSyntax? target) => Update(this.OpenBracketToken, target, this.Attributes, this.CloseBracketToken);
9959
public
AttributeListSyntax
WithAttributes(SeparatedSyntaxList<AttributeSyntax> attributes) => Update(this.OpenBracketToken, this.Target, attributes, this.CloseBracketToken);
9960
public
AttributeListSyntax
WithCloseBracketToken(SyntaxToken closeBracketToken) => Update(this.OpenBracketToken, this.Target, this.Attributes, closeBracketToken);
9962
public
AttributeListSyntax
AddAttributes(params AttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items));
10312
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10333
public TypeParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken varianceKeyword, SyntaxToken identifier)
10345
public TypeParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.VarianceKeyword, this.Identifier);
10349
public TypeParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10388
public new BaseTypeDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseTypeDeclarationSyntax)WithAttributeListsCore(attributeLists);
10391
public new BaseTypeDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseTypeDeclarationSyntax)AddAttributeListsCore(items);
10469
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10549
public ClassDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
10561
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10562
public new ClassDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Identifier, this.TypeParameterList, this.ParameterList, this.BaseList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
10586
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10587
public new ClassDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10635
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10715
public StructDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
10727
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10728
public new StructDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Identifier, this.TypeParameterList, this.ParameterList, this.BaseList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
10752
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10753
public new StructDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10801
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10881
public UnionDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
10893
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10894
public new UnionDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Identifier, this.TypeParameterList, this.ParameterList, this.BaseList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
10918
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10919
public new UnionDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10967
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11047
public InterfaceDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
11059
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11060
public new InterfaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Identifier, this.TypeParameterList, this.ParameterList, this.BaseList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
11084
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11085
public new InterfaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11133
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11221
public RecordDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken classOrStructKeyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
11233
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11234
public new RecordDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.ClassOrStructKeyword, this.Identifier, this.TypeParameterList, this.ParameterList, this.BaseList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
11259
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11260
public new RecordDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11305
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11382
public EnumDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken enumKeyword, SyntaxToken identifier, BaseListSyntax? baseList, SyntaxToken openBraceToken, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
11394
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11395
public new EnumDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.EnumKeyword, this.Identifier, this.BaseList, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
11411
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11412
public new EnumDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11444
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11500
public DelegateDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken delegateKeyword, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken semicolonToken)
11512
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11513
public new DelegateDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.DelegateKeyword, this.ReturnType, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.SemicolonToken);
11524
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11525
public new DelegateDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11553
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11588
public EnumMemberDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
11600
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11601
public new EnumMemberDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Identifier, this.EqualsValue);
11607
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11608
public new EnumMemberDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11633
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11706
public ExtensionBlockDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
11718
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11719
public new ExtensionBlockDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.OpenBraceToken, this.Members, this.CloseBraceToken, this.SemicolonToken);
11739
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11740
public new ExtensionBlockDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12314
public new BaseFieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseFieldDeclarationSyntax)WithAttributeListsCore(attributeLists);
12317
public new BaseFieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseFieldDeclarationSyntax)AddAttributeListsCore(items);
12338
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12372
public FieldDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
12384
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12385
public new FieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Declaration, this.SemicolonToken);
12393
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12394
public new FieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12417
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12453
public EventFieldDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
12465
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12466
public new EventFieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.EventKeyword, this.Declaration, this.SemicolonToken);
12475
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12476
public new EventFieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12545
public BaseMethodDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items) => AddBodyAttributeListsCore(items);
12546
internal abstract BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items);
12560
public new BaseMethodDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseMethodDeclarationSyntax)WithAttributeListsCore(attributeLists);
12563
public new BaseMethodDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseMethodDeclarationSyntax)AddAttributeListsCore(items);
12591
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12662
public MethodDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
12674
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12675
public new MethodDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.Identifier, this.TypeParameterList, this.ParameterList, this.ConstraintClauses, this.Body, this.ExpressionBody, this.SemicolonToken);
12692
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12693
public new MethodDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12704
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12705
public new MethodDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12739
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12814
public OperatorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorKeyword, SyntaxToken checkedKeyword, SyntaxToken operatorToken, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
12826
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12827
public new OperatorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.OperatorToken, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12844
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12845
public new OperatorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12850
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12851
public new OperatorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12885
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12960
public ConversionOperatorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken implicitOrExplicitKeyword, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorKeyword, SyntaxToken checkedKeyword, TypeSyntax type, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
12972
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12973
public new ConversionOperatorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ImplicitOrExplicitKeyword, this.ExplicitInterfaceSpecifier, this.OperatorKeyword, this.CheckedKeyword, this.Type, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12990
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12991
public new ConversionOperatorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12996
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12997
public new ConversionOperatorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
13030
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13087
public ConstructorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13099
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13100
public new ConstructorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Identifier, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
13114
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13115
public new ConstructorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13120
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
13121
public new ConstructorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
13204
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13260
public DestructorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken tildeToken, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13272
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13273
public new DestructorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
13287
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13288
public new DestructorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13293
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
13294
public new DestructorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
13332
public new BasePropertyDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BasePropertyDeclarationSyntax)WithAttributeListsCore(attributeLists);
13335
public new BasePropertyDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BasePropertyDeclarationSyntax)AddAttributeListsCore(items);
13360
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13420
public PropertyDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer, SyntaxToken semicolonToken)
13432
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13433
public new PropertyDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.ExpressionBody, this.Initializer, this.SemicolonToken);
13447
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13448
public new PropertyDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13520
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13574
public EventDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, SyntaxToken semicolonToken)
13586
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13587
public new EventDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.EventKeyword, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.SemicolonToken);
13600
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13601
public new EventDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13632
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13692
public IndexerDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken thisKeyword, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13704
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13705
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);
13719
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13720
public new IndexerDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13802
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13854
public AccessorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13866
public AccessorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Body, this.ExpressionBody, this.SemicolonToken);
13873
public AccessorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13875
public AccessorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
14031
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
14032
public BaseParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
14033
internal abstract BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
14035
public BaseParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
14036
internal abstract BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
14073
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
14120
public ParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type, SyntaxToken identifier, EqualsValueClauseSyntax? @default)
14132
internal override BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
14133
public new ParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.Identifier, this.Default);
14141
internal override BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
14142
public new ParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
14165
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
14198
public FunctionPointerParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type)
14210
internal override BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
14211
public new FunctionPointerParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type);
14217
internal override BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
14218
public new FunctionPointerParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
14239
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
14271
public IncompleteMemberSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type)
14283
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
14284
public new IncompleteMemberSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type);
14289
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
14290
public new IncompleteMemberSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
Binder\Binder_Lambda.cs (4)
54
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes = default;
131
var attributesBuilder = ArrayBuilder<SyntaxList<
AttributeListSyntax
>>.GetInstance();
275
static void checkAttributes(AnonymousFunctionExpressionSyntax syntax, SyntaxList<
AttributeListSyntax
> attributeLists, BindingDiagnosticBag diagnostics)
277
foreach (
var
attributeList in attributeLists)
Binder\Binder_Statements.cs (1)
44
var
attributeList = node.AttributeLists[0];
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
148
case
AttributeListSyntax
:
Binder\Binder.QueryUnboundLambdaState.cs (1)
35
public override SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index) => default;
BoundTree\UnboundLambda.cs (6)
413
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes,
511
public SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index) { return Data.ParameterAttributes(index); }
593
public abstract SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index);
1499
private readonly ImmutableArray<SyntaxList<
AttributeListSyntax
>> _parameterAttributes;
1515
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes,
1589
public override SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
60
attributedNode = attributedNode?.FirstAncestorOrSelf<
AttributeListSyntax
>()?.Parent;
Compiler\MethodCompiler.cs (1)
2321
if (id.Ancestors(ascendOutOfTrivia: false).OfType<
AttributeListSyntax
>().Any() &&
Declarations\DeclarationTreeBuilder.cs (3)
735
foreach (
var
attributeListSyntax in node.AttributeLists)
907
private static QuickAttributes GetQuickAttributes(SyntaxList<
AttributeListSyntax
> attributeLists)
910
foreach (
var
attributeList in attributeLists)
Declarations\MergedTypeDeclaration.cs (3)
56
public ImmutableArray<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations(QuickAttributes? quickAttributes)
58
var attributeSyntaxListBuilder = ArrayBuilder<SyntaxList<
AttributeListSyntax
>>.GetInstance();
74
SyntaxList<
AttributeListSyntax
> attributesSyntaxList;
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
623
private static TextSpan SkipAttributes(SyntaxNode syntax, SyntaxList<
AttributeListSyntax
> attributes, SyntaxTokenList modifiers, SyntaxToken keyword, TypeSyntax? type)
SourceGeneration\CSharpSyntaxHelper.cs (5)
45
Debug.Assert(attribute.Parent is
AttributeListSyntax
);
51
=> node is
AttributeListSyntax
;
55
var
attributeList = (
AttributeListSyntax
)node;
69
=> ((
AttributeListSyntax
)node).Attributes;
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
362
private static void AddAttributes(SyntaxList<
AttributeListSyntax
> attributeLists, ArrayBuilder<SyntaxNode> builder)
364
foreach (
var
attributeList in attributeLists)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
30
protected abstract OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations();
Symbols\Source\GlobalExpressionVariable.cs (2)
60
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations() => OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\LambdaParameterSymbol.cs (3)
15
private readonly SyntaxList<
AttributeListSyntax
> _attributeLists;
20
SyntaxList<
AttributeListSyntax
> attributeLists,
50
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations() => OneOrMany.Create(_attributeLists);
Symbols\Source\LambdaSymbol.cs (1)
289
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\LocalFunctionSymbol.cs (3)
395
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
446
private void ReportAttributesDisallowed(SyntaxList<
AttributeListSyntax
> attributes, BindingDiagnosticBag diagnostics)
451
foreach (
var
attrList in attributes)
Symbols\Source\SourceAssemblySymbol.cs (2)
1551
internal ImmutableArray<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
1553
var builder = ArrayBuilder<SyntaxList<
AttributeListSyntax
>>.GetInstance();
Symbols\Source\SourceComplexParameterSymbol.cs (3)
509
internal sealed override SyntaxList<
AttributeListSyntax
> AttributeDeclarationList
514
return (syntax != null) ? syntax.AttributeLists : default(SyntaxList<
AttributeListSyntax
>);
521
internal virtual OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\SourceConstructorSymbol.cs (2)
218
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
234
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
Symbols\Source\SourceConstructorSymbolBase.cs (2)
167
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
170
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Source\SourceCustomEventAccessorSymbol.cs (2)
84
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
96
internal SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
Symbols\Source\SourceDelegateMethodSymbol.cs (5)
198
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
235
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
238
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
384
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
389
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Source\SourceDestructorSymbol.cs (3)
159
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
165
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
168
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Source\SourceEnumConstantSymbol.cs (2)
92
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
99
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\SourceEventSymbol.cs (2)
142
internal SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
238
private OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\SourceFieldLikeEventSymbol.cs (3)
301
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
318
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
322
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\SourceMemberFieldSymbol.cs (2)
456
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
463
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
174
internal virtual OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
176
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
182
internal virtual OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
Symbols\Source\SourceNamedTypeSymbol.cs (4)
786
internal ImmutableArray<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations(QuickAttributes? quickAttributes = null)
1291
ImmutableArray<SyntaxList<
AttributeListSyntax
>> attributeLists = GetAttributeDeclarations(QuickAttributes.TypeIdentifier);
1293
foreach (SyntaxList<
AttributeListSyntax
> list in attributeLists)
1298
foreach (
AttributeListSyntax
attrList in list)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
426
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
442
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
452
return default(SyntaxList<
AttributeListSyntax
>);
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
94
internal abstract override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations();
Symbols\Source\SourceParameterSymbol.cs (1)
189
internal abstract SyntaxList<
AttributeListSyntax
> AttributeDeclarationList { get; }
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
678
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
697
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationList
Symbols\Source\SourcePropertySymbol.cs (2)
191
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
211
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
Symbols\Source\SourcePropertySymbolBase.cs (2)
101
SyntaxList<
AttributeListSyntax
> indexerNameAttributeLists,
1325
public abstract OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations();
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
149
internal override SyntaxList<
AttributeListSyntax
> AttributeDeclarationList
151
get { return default(SyntaxList<
AttributeListSyntax
>); }
Symbols\Source\SourceTypeParameterSymbol.cs (2)
117
internal ImmutableArray<SyntaxList<
AttributeListSyntax
>> MergedAttributeDeclarationSyntaxLists
121
var mergedAttributesBuilder = ArrayBuilder<SyntaxList<
AttributeListSyntax
>>.GetInstance();
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
124
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
126
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\SynthesizedSourceOrdinaryMethodSymbol.cs (2)
68
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations() => OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Symbol_Attributes.cs (8)
304
OneOrMany<SyntaxList<
AttributeListSyntax
>> attributesSyntaxLists,
545
protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<
AttributeListSyntax
>> attributeDeclarations, Binder? rootBinder)
551
foreach (
var
attributeListSyntax in attributeListSyntaxList)
590
OneOrMany<SyntaxList<
AttributeListSyntax
>> attributeDeclarationSyntaxLists,
610
foreach (
var
attributeDeclarationSyntax in attributeDeclarationSyntaxList)
668
protected virtual bool ShouldBindAttributes(
AttributeListSyntax
attributeDeclarationSyntax, BindingDiagnosticBag diagnostics)
674
protected Binder GetAttributeBinder(SyntaxList<
AttributeListSyntax
> attributeDeclarationSyntaxList, CSharpCompilation compilation, Binder? rootBinder = null)
683
private static bool MatchAttributeTarget(IAttributeTargetSymbol attributeTarget, AttributeLocation symbolPart,
AttributeListSyntax
attributeList, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
74
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
76
return new OneOrMany<SyntaxList<
AttributeListSyntax
>>(((SourceNamedTypeSymbol)ContainingType).GetAttributeDeclarations());
168
protected override bool ShouldBindAttributes(
AttributeListSyntax
attributeDeclarationSyntax, BindingDiagnosticBag diagnostics)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (2)
39
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
40
=> OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (3)
44
indexerNameAttributeLists: new SyntaxList<
AttributeListSyntax
>(),
57
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
58
=> OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (2)
56
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations() => OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
43
indexerNameAttributeLists: new SyntaxList<
AttributeListSyntax
>(),
59
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
74
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
107
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
295
foreach (
var
attribute in attributeList)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
76
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (3)
38
indexerNameAttributeLists: new SyntaxList<
AttributeListSyntax
>(),
53
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
54
=> OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Syntax\BaseFieldDeclarationSyntax.cs (1)
9
public abstract override SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
Syntax\BaseMethodDeclarationSyntax.cs (1)
9
public abstract override SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
Syntax\BasePropertyDeclarationSyntax.cs (1)
9
public abstract override SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
Syntax\BreakStatementSyntax.cs (3)
11
public BreakStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, SyntaxToken semicolonToken)
26
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
29
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, SyntaxToken semicolonToken)
Syntax\ClassDeclarationSyntax.cs (1)
9
public ClassDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\ConstructorDeclarationSyntax.cs (5)
14
SyntaxList<
AttributeListSyntax
> attributeLists,
38
SyntaxList<
AttributeListSyntax
> attributeLists,
55
SyntaxList<
AttributeListSyntax
> attributeLists,
73
SyntaxList<
AttributeListSyntax
> attributeLists,
90
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\ContinueStatementSyntax.cs (3)
11
public ContinueStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, SyntaxToken semicolonToken)
26
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
29
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, SyntaxToken semicolonToken)
Syntax\ConversionOperatorDeclarationSyntax.cs (2)
10
SyntaxList<
AttributeListSyntax
> attributeLists,
34
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\DestructorDeclarationSyntax.cs (5)
14
SyntaxList<
AttributeListSyntax
> attributeLists,
38
SyntaxList<
AttributeListSyntax
> attributeLists,
54
SyntaxList<
AttributeListSyntax
> attributeLists,
72
SyntaxList<
AttributeListSyntax
> attributeLists,
88
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\EnumMemberDeclarationSyntax.cs (1)
9
public EnumMemberDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, EqualsValueClauseSyntax equalsValue)
Syntax\EventDeclarationSyntax.cs (2)
13
public EventDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList)
18
public EventDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken)
Syntax\IndexerDeclarationSyntax.cs (1)
37
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\InterfaceDeclarationSyntax.cs (1)
9
public InterfaceDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\LookupPosition.cs (1)
98
internal static bool IsInAttributeSpecification(int position, SyntaxList<
AttributeListSyntax
> attributesSyntaxList)
Syntax\MethodDeclarationSyntax.cs (1)
28
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\OperatorDeclarationSyntax.cs (2)
10
SyntaxList<
AttributeListSyntax
> attributeLists,
34
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\ParenthesizedLambdaExpressionSyntax.cs (2)
36
public ParenthesizedLambdaExpressionSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
57
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterListSyntax parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
Syntax\PropertyDeclarationSyntax.cs (2)
34
public AccessorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, SyntaxToken semicolonToken)
46
return SyntaxFactory.AccessorDeclaration(kind, default(SyntaxList<
AttributeListSyntax
>), default(SyntaxTokenList), SyntaxFactory.Token(GetAccessorDeclarationKeywordKind(kind)), body, expressionBody: null, default(SyntaxToken));
Syntax\RecordDeclarationSyntax.cs (3)
13
public RecordDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
27
public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
35
public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
Syntax\SimpleLambdaExpressionSyntax.cs (1)
43
public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, BlockSyntax? block, ExpressionSyntax? expressionBody)
Syntax\StructDeclarationSyntax.cs (1)
9
public StructDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\SyntaxExtensions.cs (3)
268
SyntaxList<
AttributeListSyntax
> attributeLists,
290
SyntaxList<
AttributeListSyntax
> attributeLists,
313
SyntaxList<
AttributeListSyntax
> attributeLists,
Syntax\SyntaxFactory.cs (25)
2499
SyntaxList<
AttributeListSyntax
> attributeLists,
2518
SyntaxList<
AttributeListSyntax
> attributeLists,
2540
SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers,
2563
SyntaxList<
AttributeListSyntax
> attributeLists,
2584
SyntaxList<
AttributeListSyntax
> attributeLists,
2611
SyntaxList<
AttributeListSyntax
> attributeLists,
2634
SyntaxList<
AttributeListSyntax
> attributeLists,
2659
SyntaxList<
AttributeListSyntax
> attributeLists,
2680
SyntaxList<
AttributeListSyntax
> attributeLists,
2735
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, BlockSyntax body)
2737
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax body, SyntaxToken semicolonToken)
2739
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ArrowExpressionClauseSyntax expressionBody)
2741
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, ArrowExpressionClauseSyntax expressionBody, SyntaxToken semicolonToken)
2744
public static EnumMemberDeclarationSyntax EnumMemberDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
2757
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList)
2763
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken)
2905
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
2914
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2920
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2932
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
2941
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2947
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2959
public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
2965
public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2977
public static EnumDeclarationSyntax EnumDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, BaseListSyntax? baseList, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members)
Syntax\SyntaxNormalizer.cs (2)
267
if (currentToken.Parent is
AttributeListSyntax
&& currentToken.Parent.Parent is not ParameterSyntax)
317
return (nextToken.Parent is
AttributeListSyntax
&& !(nextToken.Parent.Parent is ParameterSyntax)) ? 1 : 0;
Syntax\TypeDeclarationSyntax.cs (4)
21
public new TypeDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items)
27
public new TypeDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists)
93
default(SyntaxList<
AttributeListSyntax
>),
113
SyntaxList<
AttributeListSyntax
> attributes,
Microsoft.CodeAnalysis.CSharp.CodeStyle (18)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
19
var
attributeList = (
AttributeListSyntax
)context.Node;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (2)
113
var
attributeList = attribute.Parent as
AttributeListSyntax
;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
719
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (6)
294
previousToken.Parent is
AttributeListSyntax
&&
295
currentToken.Parent is not
AttributeListSyntax
)
334
if (previousToken.Parent is
AttributeListSyntax
parent)
340
if (!currentToken.IsKind(SyntaxKind.EndOfFileToken) && !(currentToken.Parent is
AttributeListSyntax
))
396
if (currentToken.Parent is
AttributeListSyntax
parent)
400
previousToken.Parent is not
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
203
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
401
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
407
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1155
node.Parent is
AttributeListSyntax
attributeList &&
1675
=> ((
AttributeListSyntax
)node).Attributes;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (28)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
441
private static SyntaxList<
AttributeListSyntax
> GetModifiedAttributeListsForProperty(PositionalParameterInfo result)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (6)
158
using var _ = ArrayBuilder<
AttributeListSyntax
>.GetInstance(out var finalAttributes);
159
foreach (
var
attributeList in fieldAttributes)
163
var
converted = ConvertAttributeList(attributeList);
169
foreach (
var
attributeList in property.AttributeLists)
184
static
AttributeListSyntax
ConvertAttributeList(
AttributeListSyntax
attributeList)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
441
private static SyntaxList<
AttributeListSyntax
> RemoveAttributeFromAttributeLists(
442
SyntaxList<
AttributeListSyntax
> attributeLists,
447
foreach (
var
attributeList in attributeLists)
453
IEnumerable<
AttributeListSyntax
> newAttributeLists;
465
var
newAttributeList = attributeList.WithAttributes(newAttributes);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (2)
527
var
attributeList = this.TargetToken.Parent?.FirstAncestorOrSelf<
AttributeListSyntax
>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
96
&& parent is
AttributeListSyntax
attributeList
125
static bool IsGlobalAttributeList(
AttributeListSyntax
attributeList)
359
if (token.Kind() == SyntaxKind.CloseBracketToken && token.Parent is
AttributeListSyntax
)
2185
if (token.GetAncestor<
AttributeListSyntax
>() != null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
289
if (nonTerminalNode is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
215
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
874
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)
Microsoft.CodeAnalysis.CSharp.Features (31)
ChangeSignature\CSharpChangeSignatureService.cs (1)
217
var lastAttributes = matchingNode.ChildNodes().LastOrDefault(n => n is
AttributeListSyntax
);
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (5)
88
return node is
AttributeListSyntax
attributeList &&
146
var
attributeList = CreateAttributeList(
151
private static
AttributeListSyntax
CreateAttributeList(
163
AttributeListSyntax
attributeList;
216
return attributeSyntax.Parent is
AttributeListSyntax
attributeList && attributeList.Attributes.Count == 1;
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (1)
34
foreach (
var
attributeList in compilationUnit.AttributeLists)
Completion\CompletionProviders\OverrideCompletionProvider.cs (1)
102
if (token.Parent is not
AttributeListSyntax
)
Completion\KeywordRecommenders\MethodKeywordRecommender.cs (1)
24
return token.Parent is
AttributeListSyntax
Completion\KeywordRecommenders\ReturnKeywordRecommender.cs (1)
36
token.Parent is
AttributeListSyntax
&&
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
265
foreach (
var
attributeList in methodTargetingAttributes)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
464
foreach (
var
attributeList in localFunc.AttributeLists)
EditAndContinue\SyntaxComparer.cs (3)
918
distance = ComputeDistance((
AttributeListSyntax
)leftNode, (
AttributeListSyntax
)rightNode);
1508
return ((
AttributeListSyntax
)node).Target;
IntroduceVariable\CSharpIntroduceVariableService.cs (2)
91
var
attributeDecl = attributeArgument.GetAncestorOrThis<
AttributeListSyntax
>();
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
19
var
attributeList = (
AttributeListSyntax
)context.Node;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (2)
113
var
attributeList = attribute.Parent as
AttributeListSyntax
;
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
441
private static SyntaxList<
AttributeListSyntax
> GetModifiedAttributeListsForProperty(PositionalParameterInfo result)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (6)
158
using var _ = ArrayBuilder<
AttributeListSyntax
>.GetInstance(out var finalAttributes);
159
foreach (
var
attributeList in fieldAttributes)
163
var
converted = ConvertAttributeList(attributeList);
169
foreach (
var
attributeList in property.AttributeLists)
184
static
AttributeListSyntax
ConvertAttributeList(
AttributeListSyntax
attributeList)
src\roslyn\src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
362
private static void AddAttributes(SyntaxList<
AttributeListSyntax
> attributeLists, ArrayBuilder<SyntaxNode> builder)
364
foreach (
var
attributeList in attributeLists)
Testing\CSharpTestMethodFinder.cs (1)
29
foreach (
var
attributeList in method.AttributeLists)
Microsoft.CodeAnalysis.CSharp.Workspaces (65)
CodeGeneration\CSharpSyntaxGenerator.cs (30)
271
var attributes = default(SyntaxList<
AttributeListSyntax
>);
982
private static SyntaxList<
AttributeListSyntax
> AsAttributeLists(IEnumerable<SyntaxNode> attributes)
987
private static
AttributeListSyntax
AsAttributeList(SyntaxNode node)
989
return node is AttributeSyntax attr ? SyntaxFactory.AttributeList([attr]) : (
AttributeListSyntax
)node;
1018
private static bool IsReturnAttribute(
AttributeListSyntax
list)
1080
private static IEnumerable<
AttributeListSyntax
> AsReturnAttributes(IEnumerable<SyntaxNode> attributes)
1086
private static SyntaxList<
AttributeListSyntax
> AsAssemblyAttributes(IEnumerable<
AttributeListSyntax
> attributes)
1091
private static SyntaxList<
AttributeListSyntax
> WithRequiredTargetSpecifier(SyntaxList<
AttributeListSyntax
> attributes, SyntaxNode declaration)
1106
var
list = (
AttributeListSyntax
)attributeDeclaration;
1154
var
list = (
AttributeListSyntax
)declaration;
1174
var
list = (
AttributeListSyntax
)declaration;
1189
internal static SyntaxList<
AttributeListSyntax
> GetAttributeLists(SyntaxNode declaration)
1200
private static SyntaxNode WithAttributeLists(SyntaxNode declaration, SyntaxList<
AttributeListSyntax
> attributeLists)
1283
var
attrList = (
AttributeListSyntax
)declaration;
1323
SyntaxKind.AttributeList => ((
AttributeListSyntax
)declaration).Attributes.Count,
2014
var
list = (
AttributeListSyntax
)declaration;
2023
if (declaration.Parent is not
AttributeListSyntax
parentList || parentList.Attributes.Count > 1)
2070
AttributeListSyntax
attributeList when attributeList.Attributes.Count == 1 => attributeList.Attributes[0].Name.ToString(),
2102
AttributeListSyntax
attributeList when attributeList.Attributes.Count == 1 =>
2202
var
attrList = (
AttributeListSyntax
)attr.Parent;
3118
SyntaxKind.AttributeList => ((
AttributeListSyntax
)declaration).Attributes,
3154
if (attr.Parent is
AttributeListSyntax
attrList && attrList.Attributes.Count == 1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
719
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (6)
294
previousToken.Parent is
AttributeListSyntax
&&
295
currentToken.Parent is not
AttributeListSyntax
)
334
if (previousToken.Parent is
AttributeListSyntax
parent)
340
if (!currentToken.IsKind(SyntaxKind.EndOfFileToken) && !(currentToken.Parent is
AttributeListSyntax
))
396
if (currentToken.Parent is
AttributeListSyntax
parent)
400
previousToken.Parent is not
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
203
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
401
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
407
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1155
node.Parent is
AttributeListSyntax
attributeList &&
1675
=> ((
AttributeListSyntax
)node).Attributes;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
441
private static SyntaxList<
AttributeListSyntax
> RemoveAttributeFromAttributeLists(
442
SyntaxList<
AttributeListSyntax
> attributeLists,
447
foreach (
var
attributeList in attributeLists)
453
IEnumerable<
AttributeListSyntax
> newAttributeLists;
465
var
newAttributeList = attributeList.WithAttributes(newAttributes);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (2)
527
var
attributeList = this.TargetToken.Parent?.FirstAncestorOrSelf<
AttributeListSyntax
>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
96
&& parent is
AttributeListSyntax
attributeList
125
static bool IsGlobalAttributeList(
AttributeListSyntax
attributeList)
359
if (token.Kind() == SyntaxKind.CloseBracketToken && token.Parent is
AttributeListSyntax
)
2185
if (token.GetAncestor<
AttributeListSyntax
>() != null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
289
if (nonTerminalNode is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
215
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
874
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
41
foreach (
var
attribute in root.AttributeLists)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
106
foreach (
AttributeListSyntax
mal in method.AttributeLists)
Microsoft.Gen.Logging (1)
Parser.cs (1)
680
foreach (
var
mal in methodSyntax.AttributeLists)
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
989
foreach (
AttributeListSyntax
additionalAttr in sigContext.AdditionalAttributes)
Microsoft.Interop.JavaScript.JSImportGenerator (9)
Comparers.cs (2)
16
public static readonly IEqualityComparer<(MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
)> GeneratedSyntax3 =
17
new CustomValueTupleElementComparer<MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
>(
JSExportGenerator.cs (7)
53
IncrementalValuesProvider<(MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
)> generateSingleStub = methodsToGenerate
71
IncrementalValueProvider<ImmutableArray<(StatementSyntax,
AttributeListSyntax
)>> regSyntax = generateSingleStub
189
ImmutableArray<(StatementSyntax Registration,
AttributeListSyntax
Attribute)> methods, string assemblyName)
201
var attributes = new List<
AttributeListSyntax
>();
223
SingletonList<
AttributeListSyntax
>(
293
private static (MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
) GenerateSource(
346
AttributeListSyntax
registrationAttribute = AttributeList(SingletonSeparatedList(Attribute(IdentifierName(Constants.DynamicDependencyAttributeGlobal))
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
420
(ParameterListSyntax parameterList, TypeSyntax returnType,
AttributeListSyntax
returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData();
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
354
(ParameterListSyntax parameterList, TypeSyntax returnType,
AttributeListSyntax
returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData();
Microsoft.Interop.SourceGeneration (8)
BoundGenerators.cs (1)
205
public (ParameterListSyntax ParameterList, TypeSyntax ReturnType,
AttributeListSyntax
? ReturnTypeAttributes) GenerateTargetMethodSignatureData(StubIdentifierContext context)
ManagedToNativeStubGenerator.cs (1)
196
public (ParameterListSyntax ParameterList, TypeSyntax ReturnType,
AttributeListSyntax
? ReturnTypeAttributes) GenerateTargetMethodSignatureData()
Marshalling\MarshallingGeneratorExtensions.cs (1)
36
public static
AttributeListSyntax
? GenerateAttributesForReturnType(this IBoundMarshallingGenerator generator)
SignatureContext.cs (4)
53
public ImmutableArray<
AttributeListSyntax
> AdditionalAttributes { get; init; }
64
ImmutableArray<
AttributeListSyntax
>.Builder additionalAttrs = ImmutableArray.CreateBuilder<
AttributeListSyntax
>();
227
&& AdditionalAttributes.SequenceEqual(other.AdditionalAttributes, (IEqualityComparer<
AttributeListSyntax
>)SyntaxEquivalentComparer.Instance);
UnmanagedToManagedStubGenerator.cs (1)
161
public (ParameterListSyntax ParameterList, TypeSyntax ReturnType,
AttributeListSyntax
? ReturnTypeAttributes) GenerateAbiMethodSignatureData()
QuarantineTools.Tests (12)
ActiveIssueTests.cs (6)
395
var newLists = new List<
AttributeListSyntax
>();
396
foreach (
var
list in method.AttributeLists)
407
var
newList = list.WithAttributes(SyntaxFactory.SeparatedList(remaining));
417
foreach (
var
list in method.AttributeLists)
434
var
newList = SyntaxFactory.AttributeList(SyntaxFactory.SingletonSeparatedList(attr));
439
var
last = method.AttributeLists[method.AttributeLists.Count - 1];
QuarantineScriptTests.cs (6)
339
var newLists = new List<
AttributeListSyntax
>();
340
foreach (
var
list in method.AttributeLists)
351
var
newList = list.WithAttributes(SyntaxFactory.SeparatedList(remaining));
361
foreach (
var
list in method.AttributeLists)
378
var
newList = SyntaxFactory.AttributeList(SyntaxFactory.SingletonSeparatedList(attr));
383
var
last = method.AttributeLists[method.AttributeLists.Count - 1];
Roslyn.Diagnostics.CSharp.Analyzers (37)
CSharpImportingConstructorShouldBeObsoleteCodeFixProvider.cs (2)
27
typeDeclaration = attributeName.GetAncestor<
AttributeListSyntax
>()?.Parent;
32
=> ((
AttributeListSyntax
)attributeList).WithTarget(AttributeTargetSpecifier(MethodKeyword));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
719
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (6)
294
previousToken.Parent is
AttributeListSyntax
&&
295
currentToken.Parent is not
AttributeListSyntax
)
334
if (previousToken.Parent is
AttributeListSyntax
parent)
340
if (!currentToken.IsKind(SyntaxKind.EndOfFileToken) && !(currentToken.Parent is
AttributeListSyntax
))
396
if (currentToken.Parent is
AttributeListSyntax
parent)
400
previousToken.Parent is not
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
203
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
401
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
407
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1155
node.Parent is
AttributeListSyntax
attributeList &&
1675
=> ((
AttributeListSyntax
)node).Attributes;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (5)
441
private static SyntaxList<
AttributeListSyntax
> RemoveAttributeFromAttributeLists(
442
SyntaxList<
AttributeListSyntax
> attributeLists,
447
foreach (
var
attributeList in attributeLists)
453
IEnumerable<
AttributeListSyntax
> newAttributeLists;
465
var
newAttributeList = attributeList.WithAttributes(newAttributes);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (2)
527
var
attributeList = this.TargetToken.Parent?.FirstAncestorOrSelf<
AttributeListSyntax
>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
96
&& parent is
AttributeListSyntax
attributeList
125
static bool IsGlobalAttributeList(
AttributeListSyntax
attributeList)
359
if (token.Kind() == SyntaxKind.CloseBracketToken && token.Parent is
AttributeListSyntax
)
2185
if (token.GetAncestor<
AttributeListSyntax
>() != null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
289
if (nonTerminalNode is
AttributeListSyntax
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
215
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
874
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)