1 instantiation of AttributeListSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Internal.Generated.cs (1)
15815
internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.
AttributeListSyntax
(this, parent, position);
1089 references to AttributeListSyntax
ILLink.CodeFixProvider (1)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
149
var nodeWithAttribute = newNode.AddAttributeLists((
AttributeListSyntax
)attribute);
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 (727)
Binder\Binder.IdentifierUsedAsValueFinder.cs (1)
141
case
AttributeListSyntax
:
Binder\Binder.QueryUnboundLambdaState.cs (1)
35
public override SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index) => default;
Binder\Binder_Lambda.cs (4)
53
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes = default;
130
var attributesBuilder = ArrayBuilder<SyntaxList<
AttributeListSyntax
>>.GetInstance();
274
static void checkAttributes(AnonymousFunctionExpressionSyntax syntax, SyntaxList<
AttributeListSyntax
> attributeLists, BindingDiagnosticBag diagnostics)
276
foreach (
var
attributeList in attributeLists)
Binder\Binder_Statements.cs (1)
44
var
attributeList = node.AttributeLists[0];
BoundTree\UnboundLambda.cs (6)
404
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes,
502
public SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index) { return Data.ParameterAttributes(index); }
584
public abstract SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index);
1460
private readonly ImmutableArray<SyntaxList<
AttributeListSyntax
>> _parameterAttributes;
1475
ImmutableArray<SyntaxList<
AttributeListSyntax
>> parameterAttributes,
1547
public override SyntaxList<
AttributeListSyntax
> ParameterAttributes(int index)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
60
attributedNode = attributedNode?.FirstAncestorOrSelf<
AttributeListSyntax
>()?.Parent;
Compiler\MethodCompiler.cs (1)
2293
if (id.Ancestors(ascendOutOfTrivia: false).OfType<
AttributeListSyntax
>().Any() &&
Declarations\DeclarationTreeBuilder.cs (3)
712
foreach (
var
attributeListSyntax in node.AttributeLists)
876
private static QuickAttributes GetQuickAttributes(SyntaxList<
AttributeListSyntax
> attributeLists)
879
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\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
372
private static void AddAttributes(SyntaxList<
AttributeListSyntax
> attributeLists, ArrayBuilder<SyntaxNode> builder)
374
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)
274
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\LocalFunctionSymbol.cs (3)
352
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
401
private void ReportAttributesDisallowed(SyntaxList<
AttributeListSyntax
> attributes, BindingDiagnosticBag diagnostics)
406
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)
210
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
226
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
Symbols\Source\SourceConstructorSymbolBase.cs (2)
165
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
168
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)
193
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
230
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
233
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
377
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
382
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Source\SourceDestructorSymbol.cs (3)
146
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
152
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetReturnTypeAttributeDeclarations()
155
return OneOrMany.Create(default(SyntaxList<
AttributeListSyntax
>));
Symbols\Source\SourceEnumConstantSymbol.cs (2)
90
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
97
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\SourceEventSymbol.cs (2)
141
internal SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
237
private OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Symbols\Source\SourceFieldLikeEventSymbol.cs (3)
294
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
311
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
315
return OneOrMany<SyntaxList<
AttributeListSyntax
>>.Empty;
Symbols\Source\SourceMemberFieldSymbol.cs (2)
422
protected override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
429
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)
781
internal ImmutableArray<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations(QuickAttributes? quickAttributes = null)
1276
ImmutableArray<SyntaxList<
AttributeListSyntax
>> attributeLists = GetAttributeDeclarations(QuickAttributes.TypeIdentifier);
1278
foreach (SyntaxList<
AttributeListSyntax
> list in attributeLists)
1283
foreach (
AttributeListSyntax
attrList in list)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
404
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
420
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
430
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)
639
internal sealed override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
658
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationList
Symbols\Source\SourcePropertySymbol.cs (2)
192
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
212
private SyntaxList<
AttributeListSyntax
> AttributeDeclarationSyntaxList
Symbols\Source\SourcePropertySymbolBase.cs (2)
100
SyntaxList<
AttributeListSyntax
> indexerNameAttributeLists,
1281
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 (7)
300
OneOrMany<SyntaxList<
AttributeListSyntax
>> attributesSyntaxLists,
540
protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<
AttributeListSyntax
>> attributeDeclarations, Binder? rootBinder)
546
foreach (
var
attributeListSyntax in attributeListSyntaxList)
585
OneOrMany<SyntaxList<
AttributeListSyntax
>> attributeDeclarationSyntaxLists,
605
foreach (
var
attributeDeclarationSyntax in attributeDeclarationSyntaxList)
663
protected virtual bool ShouldBindAttributes(
AttributeListSyntax
attributeDeclarationSyntax, BindingDiagnosticBag diagnostics)
669
protected Binder GetAttributeBinder(SyntaxList<
AttributeListSyntax
> attributeDeclarationSyntaxList, CSharpCompilation compilation, Binder? rootBinder = null)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
74
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
76
return new OneOrMany<SyntaxList<
AttributeListSyntax
>>(((SourceNamedTypeSymbol)ContainingType).GetAttributeDeclarations());
164
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
>(),
55
public override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
56
=> 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)
42
indexerNameAttributeLists: new SyntaxList<
AttributeListSyntax
>(),
56
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()
290
foreach (
var
attribute in attributeList)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
76
internal override OneOrMany<SyntaxList<
AttributeListSyntax
>> GetAttributeDeclarations()
Syntax.xml.Main.Generated.cs (103)
484
public virtual TResult? VisitAttributeList(
AttributeListSyntax
node) => this.DefaultVisit(node);
1228
public virtual void VisitAttributeList(
AttributeListSyntax
node) => this.DefaultVisit(node);
1971
public override SyntaxNode? VisitAttributeList(
AttributeListSyntax
node)
3219
public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3239
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3247
public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
3948
public static GlobalStatementSyntax GlobalStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, StatementSyntax statement)
3959
public static BlockSyntax Block(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken openBraceToken, SyntaxList<StatementSyntax> statements, SyntaxToken closeBraceToken)
3967
public static BlockSyntax Block(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<StatementSyntax> statements)
3977
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)
3992
public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
4004
public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
4024
public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
4100
public static ExpressionStatementSyntax ExpressionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, SyntaxToken semicolonToken)
4108
public static ExpressionStatementSyntax ExpressionStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression)
4116
public static EmptyStatementSyntax EmptyStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken semicolonToken)
4123
public static EmptyStatementSyntax EmptyStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
4131
public static LabeledStatementSyntax LabeledStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, SyntaxToken colonToken, StatementSyntax statement)
4140
public static LabeledStatementSyntax LabeledStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, StatementSyntax statement)
4152
public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4174
public static GotoStatementSyntax GotoStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression)
4184
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, SyntaxToken semicolonToken)
4192
public static BreakStatementSyntax BreakStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
4200
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, SyntaxToken semicolonToken)
4208
public static ContinueStatementSyntax ContinueStatement(SyntaxList<
AttributeListSyntax
> attributeLists)
4216
public static ReturnStatementSyntax ReturnStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken returnKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4224
public static ReturnStatementSyntax ReturnStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4234
public static ThrowStatementSyntax ThrowStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken throwKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4242
public static ThrowStatementSyntax ThrowStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4252
public static YieldStatementSyntax YieldStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken yieldKeyword, SyntaxToken returnOrBreakKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
4272
public static YieldStatementSyntax YieldStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax? expression)
4290
public static WhileStatementSyntax WhileStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement)
4301
public static WhileStatementSyntax WhileStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax condition, StatementSyntax statement)
4309
public static DoStatementSyntax DoStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken doKeyword, StatementSyntax statement, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, SyntaxToken semicolonToken)
4322
public static DoStatementSyntax DoStatement(SyntaxList<
AttributeListSyntax
> attributeLists, StatementSyntax statement, ExpressionSyntax condition)
4330
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)
4342
public static ForStatementSyntax ForStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax? declaration, SeparatedSyntaxList<ExpressionSyntax> initializers, ExpressionSyntax? condition, SeparatedSyntaxList<ExpressionSyntax> incrementors, StatementSyntax statement)
4350
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)
4370
public static ForEachStatementSyntax ForEachStatement(SyntaxList<
AttributeListSyntax
> attributeLists, TypeSyntax type, SyntaxToken identifier, ExpressionSyntax expression, StatementSyntax statement)
4382
public static ForEachVariableStatementSyntax ForEachVariableStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, ExpressionSyntax variable, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
4401
public static ForEachVariableStatementSyntax ForEachVariableStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax variable, ExpressionSyntax expression, StatementSyntax statement)
4409
public static UsingStatementSyntax UsingStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, SyntaxToken closeParenToken, StatementSyntax statement)
4425
public static UsingStatementSyntax UsingStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, StatementSyntax statement)
4433
public static FixedStatementSyntax FixedStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken fixedKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax declaration, SyntaxToken closeParenToken, StatementSyntax statement)
4444
public static FixedStatementSyntax FixedStatement(SyntaxList<
AttributeListSyntax
> attributeLists, VariableDeclarationSyntax declaration, StatementSyntax statement)
4452
public static CheckedStatementSyntax CheckedStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken keyword, BlockSyntax block)
4471
public static CheckedStatementSyntax CheckedStatement(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block)
4489
public static UnsafeStatementSyntax UnsafeStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken unsafeKeyword, BlockSyntax block)
4497
public static UnsafeStatementSyntax UnsafeStatement(SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block)
4507
public static LockStatementSyntax LockStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken lockKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
4518
public static LockStatementSyntax LockStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, StatementSyntax statement)
4526
public static IfStatementSyntax IfStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken ifKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement, ElseClauseSyntax? @else)
4537
public static IfStatementSyntax IfStatement(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax condition, StatementSyntax statement, ElseClauseSyntax? @else)
4557
public static SwitchStatementSyntax SwitchStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
4666
public static TryStatementSyntax TryStatement(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
4674
public static TryStatementSyntax TryStatement(SyntaxList<
AttributeListSyntax
> attributeLists, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
4749
public static CompilationUnitSyntax CompilationUnit(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken endOfFileToken)
4756
public static CompilationUnitSyntax CompilationUnit(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members)
4817
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)
4833
public static NamespaceDeclarationSyntax NamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4841
public static FileScopedNamespaceDeclarationSyntax FileScopedNamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken semicolonToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4850
public static FileScopedNamespaceDeclarationSyntax FileScopedNamespaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
4858
public static
AttributeListSyntax
AttributeList(SyntaxToken openBracketToken, AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes, SyntaxToken closeBracketToken)
4862
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();
4866
public static
AttributeListSyntax
AttributeList(AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes)
4870
public static
AttributeListSyntax
AttributeList(SeparatedSyntaxList<AttributeSyntax> attributes = default)
4947
public static TypeParameterSyntax TypeParameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken varianceKeyword, SyntaxToken identifier)
4969
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)
4995
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)
5021
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)
5047
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)
5085
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)
5105
public static EnumDeclarationSyntax EnumDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken enumKeyword, SyntaxToken identifier, BaseListSyntax? baseList, SyntaxToken openBraceToken, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
5131
public static DelegateDeclarationSyntax DelegateDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken delegateKeyword, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken semicolonToken)
5142
public static DelegateDeclarationSyntax DelegateDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses)
5154
public static EnumMemberDeclarationSyntax EnumMemberDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
5169
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)
5194
public static ExtensionBlockDeclarationSyntax ExtensionBlockDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
5343
public static FieldDeclarationSyntax FieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
5351
public static FieldDeclarationSyntax FieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
5359
public static EventFieldDeclarationSyntax EventFieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
5368
public static EventFieldDeclarationSyntax EventFieldDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
5388
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)
5403
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)
5415
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)
5475
public static OperatorDeclarationSyntax OperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax returnType, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken operatorToken, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5483
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)
5510
public static ConversionOperatorDeclarationSyntax ConversionOperatorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken implicitOrExplicitKeyword, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, TypeSyntax type, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5518
public static ConstructorDeclarationSyntax ConstructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5532
public static ConstructorDeclarationSyntax ConstructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5576
public static DestructorDeclarationSyntax DestructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken tildeToken, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5591
public static DestructorDeclarationSyntax DestructorDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5603
public static PropertyDeclarationSyntax PropertyDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer, SyntaxToken semicolonToken)
5617
public static PropertyDeclarationSyntax PropertyDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer)
5641
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, SyntaxToken semicolonToken)
5656
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList)
5668
public static IndexerDeclarationSyntax IndexerDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken thisKeyword, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5683
public static IndexerDeclarationSyntax IndexerDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody)
5703
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
5735
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody)
5779
public static ParameterSyntax Parameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type, SyntaxToken identifier, EqualsValueClauseSyntax? @default)
5792
public static FunctionPointerParameterSyntax FunctionPointerParameter(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type)
5803
public static IncompleteMemberSyntax IncompleteMember(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type)
Syntax.xml.Syntax.Generated.cs (440)
3046
public AnonymousFunctionExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => AddBlockAttributeListsCore(items);
3047
internal abstract AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items);
3155
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3156
public new AnonymousMethodExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
3169
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
3170
public LambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
3171
internal abstract LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
3173
public LambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
3174
internal abstract LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
3187
public new AnonymousFunctionExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => AddBlockAttributeListsCore(items);
3211
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
3263
public SimpleLambdaExpressionSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3275
internal override LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
3276
public new SimpleLambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Parameter, this.ArrowToken, this.Block, this.ExpressionBody);
3287
internal override LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
3288
public new SimpleLambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
3291
public SimpleLambdaExpressionSyntax AddParameterAttributeLists(params
AttributeListSyntax
[] items) => WithParameter(this.Parameter.WithAttributeLists(this.Parameter.AttributeLists.AddRange(items)));
3293
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3294
public new SimpleLambdaExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items)
3369
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
3425
public ParenthesizedLambdaExpressionSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? returnType, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody)
3437
internal override LambdaExpressionSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
3438
public new ParenthesizedLambdaExpressionSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.ReturnType, this.ParameterList, this.ArrowToken, this.Block, this.ExpressionBody);
3450
internal override LambdaExpressionSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
3451
public new ParenthesizedLambdaExpressionSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
3455
internal override AnonymousFunctionExpressionSyntax AddBlockAttributeListsCore(params
AttributeListSyntax
[] items) => AddBlockAttributeLists(items);
3456
public new ParenthesizedLambdaExpressionSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items)
6169
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6201
public GlobalStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, StatementSyntax statement)
6213
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6214
public new GlobalStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Statement);
6219
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6220
public new GlobalStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6233
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
6234
public StatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
6235
internal abstract StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
6237
public StatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
6238
internal abstract StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
6257
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6284
public BlockSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken openBraceToken, SyntaxList<StatementSyntax> statements, SyntaxToken closeBraceToken)
6296
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6297
public new BlockSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.OpenBraceToken, this.Statements, this.CloseBraceToken);
6302
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6303
public new BlockSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6328
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6393
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)
6405
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6406
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);
6417
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6418
public new LocalFunctionStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6427
public LocalFunctionStatementSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
6455
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6508
public LocalDeclarationStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
6520
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6521
public new LocalDeclarationStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.UsingKeyword, this.Modifiers, this.Declaration, this.SemicolonToken);
6528
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6529
public new LocalDeclarationStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6859
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6884
public ExpressionStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, ExpressionSyntax expression, SyntaxToken semicolonToken)
6896
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6897
public new ExpressionStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Expression, this.SemicolonToken);
6901
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6902
public new ExpressionStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6920
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6931
public EmptyStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken semicolonToken)
6943
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
6944
public new EmptyStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.SemicolonToken);
6947
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
6948
public new EmptyStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
6968
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
6997
public LabeledStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, SyntaxToken colonToken, StatementSyntax statement)
7009
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7010
public new LabeledStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Identifier, this.ColonToken, this.Statement);
7015
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7016
public new LabeledStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7040
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7088
public GotoStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken gotoKeyword, SyntaxToken caseOrDefaultKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7100
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7101
public new GotoStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken);
7107
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7108
public new GotoStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7126
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7139
public BreakStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken breakKeyword, SyntaxToken semicolonToken)
7151
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7152
public new BreakStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.BreakKeyword, this.SemicolonToken);
7156
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7157
public new BreakStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7175
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7188
public ContinueStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken continueKeyword, SyntaxToken semicolonToken)
7200
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7201
public new ContinueStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ContinueKeyword, this.SemicolonToken);
7205
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7206
public new ContinueStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7225
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7252
public ReturnStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken returnKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7264
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7265
public new ReturnStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ReturnKeyword, this.Expression, this.SemicolonToken);
7270
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7271
public new ReturnStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7290
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7317
public ThrowStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken throwKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7329
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7330
public new ThrowStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.ThrowKeyword, this.Expression, this.SemicolonToken);
7335
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7336
public new ThrowStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7356
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7385
public YieldStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken yieldKeyword, SyntaxToken returnOrBreakKeyword, ExpressionSyntax? expression, SyntaxToken semicolonToken)
7397
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7398
public new YieldStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.YieldKeyword, this.ReturnOrBreakKeyword, this.Expression, this.SemicolonToken);
7404
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7405
public new YieldStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7425
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7458
public WhileStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement)
7470
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7471
public new WhileStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement);
7478
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7479
public new WhileStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7499
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7536
public DoStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken doKeyword, StatementSyntax statement, SyntaxToken whileKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, SyntaxToken semicolonToken)
7548
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7549
public new DoStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.DoKeyword, this.Statement, this.WhileKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.SemicolonToken);
7558
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7559
public new DoStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7582
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7645
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)
7657
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7658
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);
7670
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7671
public new ForStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7711
public new CommonForEachStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (CommonForEachStatementSyntax)WithAttributeListsCore(attributeLists);
7713
public new CommonForEachStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (CommonForEachStatementSyntax)AddAttributeListsCore(items);
7734
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7785
public ForEachStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, TypeSyntax type, SyntaxToken identifier, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
7797
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7798
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);
7816
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7817
public new ForEachStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7838
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7892
public ForEachVariableStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken forEachKeyword, SyntaxToken openParenToken, ExpressionSyntax variable, SyntaxToken inKeyword, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
7904
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
7905
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);
7922
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
7923
public new ForEachVariableStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
7944
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
7990
public UsingStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax? declaration, ExpressionSyntax? expression, SyntaxToken closeParenToken, StatementSyntax statement)
8002
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8003
public new UsingStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.Expression, this.CloseParenToken, this.Statement);
8012
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8013
public new UsingStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8033
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8066
public FixedStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken fixedKeyword, SyntaxToken openParenToken, VariableDeclarationSyntax declaration, SyntaxToken closeParenToken, StatementSyntax statement)
8078
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8079
public new FixedStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.FixedKeyword, this.OpenParenToken, this.Declaration, this.CloseParenToken, this.Statement);
8086
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8087
public new FixedStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8108
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8133
public CheckedStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken keyword, BlockSyntax block)
8145
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8146
public new CheckedStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Keyword, this.Block);
8150
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8151
public new CheckedStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8152
public CheckedStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
8172
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8197
public UnsafeStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken unsafeKeyword, BlockSyntax block)
8209
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8210
public new UnsafeStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.UnsafeKeyword, this.Block);
8214
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8215
public new UnsafeStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8216
public UnsafeStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
8237
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8270
public LockStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken lockKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, StatementSyntax statement)
8282
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8283
public new LockStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.LockKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.Statement);
8290
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8291
public new LockStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8315
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8370
public IfStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken ifKeyword, SyntaxToken openParenToken, ExpressionSyntax condition, SyntaxToken closeParenToken, StatementSyntax statement, ElseClauseSyntax? @else)
8382
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8383
public new IfStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.IfKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement, this.Else);
8391
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8392
public new IfStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8459
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8531
public SwitchStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
8543
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
8544
public new SwitchStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.SwitchKeyword, this.OpenParenToken, this.Expression, this.CloseParenToken, this.OpenBraceToken, this.Sections, this.CloseBraceToken);
8553
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
8554
public new SwitchStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
8966
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
8999
public TryStatementSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken tryKeyword, BlockSyntax block, SyntaxList<CatchClauseSyntax> catches, FinallyClauseSyntax? @finally)
9011
internal override StatementSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9012
public new TryStatementSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.TryKeyword, this.Block, this.Catches, this.Finally);
9018
internal override StatementSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9019
public new TryStatementSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9020
public TryStatementSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9088
public CatchClauseSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9236
public FinallyClauseSyntax AddBlockAttributeLists(params
AttributeListSyntax
[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.AttributeLists.AddRange(items)));
9263
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 2));
9292
public CompilationUnitSyntax Update(SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken endOfFileToken)
9306
public CompilationUnitSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(this.Externs, this.Usings, attributeLists, this.Members, this.EndOfFileToken);
9312
public CompilationUnitSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9470
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
9471
public MemberDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
9472
internal abstract MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
9474
public MemberDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
9475
internal abstract MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
9522
public new BaseNamespaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseNamespaceDeclarationSyntax)WithAttributeListsCore(attributeLists);
9525
public new BaseNamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseNamespaceDeclarationSyntax)AddAttributeListsCore(items);
9549
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
9609
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)
9621
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9622
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);
9639
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9640
public new NamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9670
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
9718
public FileScopedNamespaceDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken semicolonToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
9730
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
9731
public new FileScopedNamespaceDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.NamespaceKeyword, this.Name, this.SemicolonToken, this.Externs, this.Usings, this.Members);
9746
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
9747
public new FileScopedNamespaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
9813
public
AttributeListSyntax
Update(SyntaxToken openBracketToken, AttributeTargetSpecifierSyntax? target, SeparatedSyntaxList<AttributeSyntax> attributes, SyntaxToken closeBracketToken)
9817
var
newNode = SyntaxFactory.AttributeList(openBracketToken, target, attributes, closeBracketToken);
9825
public
AttributeListSyntax
WithOpenBracketToken(SyntaxToken openBracketToken) => Update(openBracketToken, this.Target, this.Attributes, this.CloseBracketToken);
9826
public
AttributeListSyntax
WithTarget(AttributeTargetSpecifierSyntax? target) => Update(this.OpenBracketToken, target, this.Attributes, this.CloseBracketToken);
9827
public
AttributeListSyntax
WithAttributes(SeparatedSyntaxList<AttributeSyntax> attributes) => Update(this.OpenBracketToken, this.Target, attributes, this.CloseBracketToken);
9828
public
AttributeListSyntax
WithCloseBracketToken(SyntaxToken closeBracketToken) => Update(this.OpenBracketToken, this.Target, this.Attributes, closeBracketToken);
9830
public
AttributeListSyntax
AddAttributes(params AttributeSyntax[] items) => WithAttributes(this.Attributes.AddRange(items));
10180
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10201
public TypeParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken varianceKeyword, SyntaxToken identifier)
10213
public TypeParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.VarianceKeyword, this.Identifier);
10217
public TypeParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10256
public new BaseTypeDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseTypeDeclarationSyntax)WithAttributeListsCore(attributeLists);
10259
public new BaseTypeDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseTypeDeclarationSyntax)AddAttributeListsCore(items);
10337
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10417
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)
10429
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10430
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);
10454
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10455
public new ClassDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10503
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10583
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)
10595
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10596
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);
10620
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10621
public new StructDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10669
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10749
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)
10761
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10762
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);
10786
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10787
public new InterfaceDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
10835
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
10923
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)
10935
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
10936
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);
10961
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
10962
public new RecordDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11007
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11084
public EnumDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken enumKeyword, SyntaxToken identifier, BaseListSyntax? baseList, SyntaxToken openBraceToken, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
11096
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11097
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);
11113
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11114
public new EnumDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11146
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11202
public DelegateDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken delegateKeyword, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken semicolonToken)
11214
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11215
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);
11226
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11227
public new DelegateDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11255
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11290
public EnumMemberDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
11302
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11303
public new EnumMemberDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Identifier, this.EqualsValue);
11309
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11310
public new EnumMemberDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
11335
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
11408
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)
11420
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
11421
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);
11441
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
11442
public new ExtensionBlockDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12016
public new BaseFieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseFieldDeclarationSyntax)WithAttributeListsCore(attributeLists);
12019
public new BaseFieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseFieldDeclarationSyntax)AddAttributeListsCore(items);
12040
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12074
public FieldDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
12086
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12087
public new FieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Declaration, this.SemicolonToken);
12095
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12096
public new FieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12119
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12155
public EventFieldDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken)
12167
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12168
public new EventFieldDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.EventKeyword, this.Declaration, this.SemicolonToken);
12177
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12178
public new EventFieldDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12247
public BaseMethodDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items) => AddBodyAttributeListsCore(items);
12248
internal abstract BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items);
12262
public new BaseMethodDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BaseMethodDeclarationSyntax)WithAttributeListsCore(attributeLists);
12265
public new BaseMethodDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BaseMethodDeclarationSyntax)AddAttributeListsCore(items);
12293
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12364
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)
12376
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12377
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);
12394
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12395
public new MethodDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12406
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12407
public new MethodDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12441
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12516
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)
12528
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12529
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);
12546
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12547
public new OperatorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12552
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12553
public new OperatorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12587
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12662
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)
12674
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12675
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);
12692
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12693
public new ConversionOperatorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12698
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12699
public new ConversionOperatorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12732
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12789
public ConstructorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, ParameterListSyntax parameterList, ConstructorInitializerSyntax? initializer, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
12801
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12802
public new ConstructorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Identifier, this.ParameterList, this.Initializer, this.Body, this.ExpressionBody, this.SemicolonToken);
12816
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12817
public new ConstructorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12822
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12823
public new ConstructorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
12906
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
12962
public DestructorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken tildeToken, SyntaxToken identifier, ParameterListSyntax parameterList, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
12974
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
12975
public new DestructorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.ExpressionBody, this.SemicolonToken);
12989
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
12990
public new DestructorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
12995
internal override BaseMethodDeclarationSyntax AddBodyAttributeListsCore(params
AttributeListSyntax
[] items) => AddBodyAttributeLists(items);
12996
public new DestructorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
13034
public new BasePropertyDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => (BasePropertyDeclarationSyntax)WithAttributeListsCore(attributeLists);
13037
public new BasePropertyDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => (BasePropertyDeclarationSyntax)AddAttributeListsCore(items);
13062
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13122
public PropertyDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, EqualsValueClauseSyntax? initializer, SyntaxToken semicolonToken)
13134
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13135
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);
13149
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13150
public new PropertyDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13222
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13276
public EventDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax? accessorList, SyntaxToken semicolonToken)
13288
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13289
public new EventDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.EventKeyword, this.Type, this.ExplicitInterfaceSpecifier, this.Identifier, this.AccessorList, this.SemicolonToken);
13302
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13303
public new EventDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13334
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13394
public IndexerDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type, ExplicitInterfaceSpecifierSyntax? explicitInterfaceSpecifier, SyntaxToken thisKeyword, BracketedParameterListSyntax parameterList, AccessorListSyntax? accessorList, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13406
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13407
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);
13421
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13422
public new IndexerDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13504
public SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13556
public AccessorDeclarationSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
13568
public AccessorDeclarationSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Keyword, this.Body, this.ExpressionBody, this.SemicolonToken);
13575
public AccessorDeclarationSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13577
public AccessorDeclarationSyntax AddBodyAttributeLists(params
AttributeListSyntax
[] items)
13733
public abstract SyntaxList<
AttributeListSyntax
> AttributeLists { get; }
13734
public BaseParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeListsCore(attributeLists);
13735
internal abstract BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists);
13737
public BaseParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => AddAttributeListsCore(items);
13738
internal abstract BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items);
13772
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13819
public ParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type, SyntaxToken identifier, EqualsValueClauseSyntax? @default)
13831
internal override BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13832
public new ParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type, this.Identifier, this.Default);
13840
internal override BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13841
public new ParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13864
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13897
public FunctionPointerParameterSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax type)
13909
internal override BaseParameterSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13910
public new FunctionPointerParameterSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type);
13916
internal override BaseParameterSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13917
public new FunctionPointerParameterSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
13938
public override SyntaxList<
AttributeListSyntax
> AttributeLists => new SyntaxList<
AttributeListSyntax
>(GetRed(ref this.attributeLists, 0));
13970
public IncompleteMemberSyntax Update(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, TypeSyntax? type)
13982
internal override MemberDeclarationSyntax WithAttributeListsCore(SyntaxList<
AttributeListSyntax
> attributeLists) => WithAttributeLists(attributeLists);
13983
public new IncompleteMemberSyntax WithAttributeLists(SyntaxList<
AttributeListSyntax
> attributeLists) => Update(attributeLists, this.Modifiers, this.Type);
13988
internal override MemberDeclarationSyntax AddAttributeListsCore(params
AttributeListSyntax
[] items) => AddAttributeLists(items);
13989
public new IncompleteMemberSyntax AddAttributeLists(params
AttributeListSyntax
[] items) => WithAttributeLists(this.AttributeLists.AddRange(items));
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\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\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)
2460
SyntaxList<
AttributeListSyntax
> attributeLists,
2479
SyntaxList<
AttributeListSyntax
> attributeLists,
2501
SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers,
2524
SyntaxList<
AttributeListSyntax
> attributeLists,
2545
SyntaxList<
AttributeListSyntax
> attributeLists,
2572
SyntaxList<
AttributeListSyntax
> attributeLists,
2595
SyntaxList<
AttributeListSyntax
> attributeLists,
2620
SyntaxList<
AttributeListSyntax
> attributeLists,
2641
SyntaxList<
AttributeListSyntax
> attributeLists,
2696
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, BlockSyntax body)
2698
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax body, SyntaxToken semicolonToken)
2700
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, ArrowExpressionClauseSyntax expressionBody)
2702
public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, ArrowExpressionClauseSyntax expressionBody, SyntaxToken semicolonToken)
2705
public static EnumMemberDeclarationSyntax EnumMemberDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
2718
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList)
2724
public static EventDeclarationSyntax EventDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken)
2866
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)
2875
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2881
public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2893
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)
2902
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2908
public static StructDeclarationSyntax StructDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2920
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)
2926
public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<
AttributeListSyntax
> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
2938
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)
89
default(SyntaxList<
AttributeListSyntax
>),
109
SyntaxList<
AttributeListSyntax
> attributes,
Microsoft.CodeAnalysis.CSharp.CodeStyle (18)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
18
var
attributeList = (
AttributeListSyntax
)context.Node;
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (2)
113
var
attributeList = attribute.Parent as
AttributeListSyntax
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
732
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
208
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
359
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
365
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1175
node.Parent is
AttributeListSyntax
attributeList &&
1698
=> ((
AttributeListSyntax
)node).Attributes;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (27)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
441
private static SyntaxList<
AttributeListSyntax
> GetModifiedAttributeListsForProperty(PositionalParameterInfo result)
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
227
var attributes = new List<
AttributeListSyntax
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
283
if (nonTerminalNode is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
211
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
870
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)
Microsoft.CodeAnalysis.CSharp.Features (31)
ChangeSignature\CSharpChangeSignatureService.cs (1)
219
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\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (2)
18
var
attributeList = (
AttributeListSyntax
)context.Node;
src\Analyzers\CSharp\Analyzers\UseNameofInNullableAttribute\CSharpUseNameofInNullableAttributeDiagnosticAnalyzer.cs (2)
113
var
attributeList = attribute.Parent as
AttributeListSyntax
;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
441
private static SyntaxList<
AttributeListSyntax
> GetModifiedAttributeListsForProperty(PositionalParameterInfo result)
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\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
372
private static void AddAttributes(SyntaxList<
AttributeListSyntax
> attributeLists, ArrayBuilder<SyntaxNode> builder)
374
foreach (
var
attributeList in attributeLists)
Testing\CSharpTestMethodFinder.cs (1)
29
foreach (
var
attributeList in method.AttributeLists)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\LocalFunctionTests.cs (3)
497
var
attributeList = localFunction.AttributeLists.Single();
545
var
attributeList = localFunction.AttributeLists.Single();
809
var
attributeList = localFunction.AttributeLists.Single();
SourceGeneration\GeneratorDriverTests.cs (1)
2730
foreach (
AttributeListSyntax
attributeListSyntax in classDeclarationSyntax.AttributeLists)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (81)
Generated\Syntax.Test.xml.Generated.cs (59)
10529
=> SyntaxFactory.SimpleLambdaExpression(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateParameter(), SyntaxFactory.Token(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax));
10535
=> SyntaxFactory.ParenthesizedLambdaExpression(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), default(TypeSyntax), GenerateParameterList(), SyntaxFactory.Token(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax));
10685
=> SyntaxFactory.GlobalStatement(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateBlock());
10688
=> SyntaxFactory.Block(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SyntaxList<StatementSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken));
10691
=> SyntaxFactory.LocalFunctionStatement(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10694
=> SyntaxFactory.LocalDeclarationStatement(new SyntaxList<
AttributeListSyntax
>(), default(SyntaxToken), default(SyntaxToken), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10715
=> SyntaxFactory.ExpressionStatement(new SyntaxList<
AttributeListSyntax
>(), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10718
=> SyntaxFactory.EmptyStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10721
=> SyntaxFactory.LabeledStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.ColonToken), GenerateBlock());
10724
=> SyntaxFactory.GotoStatement(SyntaxKind.GotoStatement, new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.GotoKeyword), default(SyntaxToken), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10727
=> SyntaxFactory.BreakStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.BreakKeyword), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10730
=> SyntaxFactory.ContinueStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.ContinueKeyword), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10733
=> SyntaxFactory.ReturnStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10736
=> SyntaxFactory.ThrowStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.ThrowKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10739
=> SyntaxFactory.YieldStatement(SyntaxKind.YieldReturnStatement, new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.YieldKeyword), SyntaxFactory.Token(SyntaxKind.ReturnKeyword), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10742
=> SyntaxFactory.WhileStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.WhileKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10745
=> SyntaxFactory.DoStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.DoKeyword), GenerateBlock(), SyntaxFactory.Token(SyntaxKind.WhileKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10748
=> SyntaxFactory.ForStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.ForKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.SemicolonToken), new SeparatedSyntaxList<ExpressionSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10751
=> SyntaxFactory.ForEachStatement(new SyntaxList<
AttributeListSyntax
>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10754
=> SyntaxFactory.ForEachVariableStatement(new SyntaxList<
AttributeListSyntax
>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.ForEachKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.InKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10757
=> SyntaxFactory.UsingStatement(new SyntaxList<
AttributeListSyntax
>(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.UsingKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), default(VariableDeclarationSyntax), default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10760
=> SyntaxFactory.FixedStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.FixedKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10763
=> SyntaxFactory.CheckedStatement(SyntaxKind.CheckedStatement, new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.CheckedKeyword), GenerateBlock());
10766
=> SyntaxFactory.UnsafeStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.UnsafeKeyword), GenerateBlock());
10769
=> SyntaxFactory.LockStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.LockKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock());
10772
=> SyntaxFactory.IfStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.IfKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken), GenerateBlock(), default(ElseClauseSyntax));
10778
=> SyntaxFactory.SwitchStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.SwitchKeyword), default(SyntaxToken), GenerateIdentifierName(), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SyntaxList<SwitchSectionSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken));
10799
=> SyntaxFactory.TryStatement(new SyntaxList<
AttributeListSyntax
>(), SyntaxFactory.Token(SyntaxKind.TryKeyword), GenerateBlock(), new SyntaxList<CatchClauseSyntax>(), default(FinallyClauseSyntax));
10814
=> SyntaxFactory.CompilationUnit(new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<
AttributeListSyntax
>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.Token(SyntaxKind.EndOfFileToken));
10823
=> SyntaxFactory.NamespaceDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default(SyntaxToken));
10826
=> SyntaxFactory.FileScopedNamespaceDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>());
10828
private static
AttributeListSyntax
GenerateAttributeList()
10850
=> SyntaxFactory.TypeParameter(new SyntaxList<
AttributeListSyntax
>(), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"));
10853
=> SyntaxFactory.ClassDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10856
=> SyntaxFactory.StructDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10859
=> SyntaxFactory.InterfaceDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10862
=> SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10865
=> SyntaxFactory.EnumDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier("Identifier"), default(BaseListSyntax), default(SyntaxToken), new SeparatedSyntaxList<EnumMemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10868
=> SyntaxFactory.DelegateDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10871
=> SyntaxFactory.EnumMemberDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), default(EqualsValueClauseSyntax));
10874
=> SyntaxFactory.ExtensionBlockDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ExtensionKeyword), default(TypeParameterListSyntax), default(ParameterListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken));
10907
=> SyntaxFactory.FieldDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10910
=> SyntaxFactory.EventFieldDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EventKeyword), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken));
10916
=> SyntaxFactory.MethodDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10919
=> SyntaxFactory.OperatorDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.PlusToken), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10922
=> SyntaxFactory.ConversionOperatorDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ImplicitKeyword), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10925
=> SyntaxFactory.ConstructorDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(ConstructorInitializerSyntax), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10931
=> SyntaxFactory.DestructorDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.TildeToken), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10934
=> SyntaxFactory.PropertyDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(EqualsValueClauseSyntax), default(SyntaxToken));
10940
=> SyntaxFactory.EventDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EventKeyword), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(SyntaxToken));
10943
=> SyntaxFactory.IndexerDeclaration(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.ThisKeyword), GenerateBracketedParameterList(), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10949
=> SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.GetKeyword), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10958
=> SyntaxFactory.Parameter(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), default(TypeSyntax), default(SyntaxToken), default(EqualsValueClauseSyntax));
10961
=> SyntaxFactory.FunctionPointerParameter(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), GenerateIdentifierName());
10964
=> SyntaxFactory.IncompleteMember(new SyntaxList<
AttributeListSyntax
>(), new SyntaxTokenList(), default(TypeSyntax));
13028
var
node = GenerateAttributeList();
13034
var
newNode = node.WithOpenBracketToken(node.OpenBracketToken).WithTarget(node.Target).WithAttributes(node.Attributes).WithCloseBracketToken(node.CloseBracketToken);
18319
var
oldNode = GenerateAttributeList();
18335
var
oldNode = GenerateAttributeList();
Parsing\DeclarationParsingTests.cs (21)
266
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
292
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
321
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
350
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
377
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
405
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
435
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
466
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
502
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
534
var
ad = (
AttributeListSyntax
)file.AttributeLists[0];
546
ad = (
AttributeListSyntax
)file.AttributeLists[1];
Syntax\SyntaxListTests.cs (1)
235
var attributes = new
AttributeListSyntax
[0];
Microsoft.CodeAnalysis.CSharp.Workspaces (64)
CodeGeneration\CSharpSyntaxGenerator.cs (30)
271
var attributes = default(SyntaxList<
AttributeListSyntax
>);
995
private static SyntaxList<
AttributeListSyntax
> AsAttributeLists(IEnumerable<SyntaxNode> attributes)
1000
private static
AttributeListSyntax
AsAttributeList(SyntaxNode node)
1002
return node is AttributeSyntax attr ? SyntaxFactory.AttributeList([attr]) : (
AttributeListSyntax
)node;
1031
private static bool IsReturnAttribute(
AttributeListSyntax
list)
1093
private static IEnumerable<
AttributeListSyntax
> AsReturnAttributes(IEnumerable<SyntaxNode> attributes)
1099
private static SyntaxList<
AttributeListSyntax
> AsAssemblyAttributes(IEnumerable<
AttributeListSyntax
> attributes)
1104
private static SyntaxList<
AttributeListSyntax
> WithRequiredTargetSpecifier(SyntaxList<
AttributeListSyntax
> attributes, SyntaxNode declaration)
1119
var
list = (
AttributeListSyntax
)attributeDeclaration;
1167
var
list = (
AttributeListSyntax
)declaration;
1187
var
list = (
AttributeListSyntax
)declaration;
1202
internal static SyntaxList<
AttributeListSyntax
> GetAttributeLists(SyntaxNode declaration)
1213
private static SyntaxNode WithAttributeLists(SyntaxNode declaration, SyntaxList<
AttributeListSyntax
> attributeLists)
1296
var
attrList = (
AttributeListSyntax
)declaration;
1336
SyntaxKind.AttributeList => ((
AttributeListSyntax
)declaration).Attributes.Count,
2016
var
list = (
AttributeListSyntax
)declaration;
2025
if (declaration.Parent is not
AttributeListSyntax
parentList || parentList.Attributes.Count > 1)
2072
AttributeListSyntax
attributeList when attributeList.Attributes.Count == 1 => attributeList.Attributes[0].Name.ToString(),
2104
AttributeListSyntax
attributeList when attributeList.Attributes.Count == 1 =>
2204
var
attrList = (
AttributeListSyntax
)attr.Parent;
3120
SyntaxKind.AttributeList => ((
AttributeListSyntax
)declaration).Attributes,
3156
if (attr.Parent is
AttributeListSyntax
attrList && attrList.Attributes.Count == 1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
732
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
208
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
359
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
365
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1175
node.Parent is
AttributeListSyntax
attributeList &&
1698
=> ((
AttributeListSyntax
)node).Attributes;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
227
var attributes = new List<
AttributeListSyntax
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
283
if (nonTerminalNode is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
211
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
870
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (20)
CodeGeneration\AddAttributesTests.cs (1)
43
var
attributeList =
CodeGeneration\SyntaxGeneratorTests.cs (19)
173
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
181
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
189
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
197
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
205
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
213
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
222
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
230
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
238
VerifySyntax<
AttributeListSyntax
>(Generator.Attribute(GetAttributeData(
1905
VerifySyntax<
AttributeListSyntax
>(
1909
VerifySyntax<
AttributeListSyntax
>(
1913
VerifySyntax<
AttributeListSyntax
>(
1917
VerifySyntax<
AttributeListSyntax
>(
1921
VerifySyntax<
AttributeListSyntax
>(
1925
VerifySyntax<
AttributeListSyntax
>(
1929
VerifySyntax<
AttributeListSyntax
>(
1933
VerifySyntax<
AttributeListSyntax
>(
2094
VerifySyntax<
AttributeListSyntax
>(attrWithComment, "// comment\r\n[a]");
5276
VerifySyntax<
AttributeListSyntax
>(
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
41
foreach (
var
attribute in root.AttributeLists)
Microsoft.Extensions.Logging.Generators (5)
LoggerMessageGenerator.Parser.cs (1)
108
foreach (
AttributeListSyntax
mal in method.AttributeLists)
src\libraries\Common\src\Roslyn\CSharpSyntaxHelper.cs (4)
36
=> node is
AttributeListSyntax
;
40
var
attributeList = (
AttributeListSyntax
)node;
62
=> ((
AttributeListSyntax
)node).Attributes;
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
605
foreach (
var
mal in methodSyntax.AttributeLists)
Microsoft.Interop.ComInterfaceGenerator (2)
AttributeInfo.cs (1)
21
internal
AttributeListSyntax
GenerateAttributeList()
ComMethodContext.cs (1)
126
.WithAttributeLists(List<
AttributeListSyntax
>())
Microsoft.Interop.JavaScript.JSImportGenerator (9)
Comparers.cs (2)
19
public static readonly IEqualityComparer<(MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
, ImmutableArray<DiagnosticInfo>)> GeneratedSyntax4 =
20
new CustomValueTupleElementComparer<MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
, ImmutableArray<DiagnosticInfo>>(
JSExportGenerator.cs (7)
75
IncrementalValuesProvider<(MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
, ImmutableArray<DiagnosticInfo>)> generateSingleStub = methodsToGenerate
95
IncrementalValueProvider<ImmutableArray<(StatementSyntax,
AttributeListSyntax
)>> regSyntax = generateSingleStub
218
ImmutableArray<(StatementSyntax Registration,
AttributeListSyntax
Attribute)> methods, string assemblyName)
230
var attributes = new List<
AttributeListSyntax
>();
252
SingletonList<
AttributeListSyntax
>(
322
private static (MemberDeclarationSyntax, StatementSyntax,
AttributeListSyntax
, ImmutableArray<DiagnosticInfo>) GenerateSource(
375
AttributeListSyntax
registrationAttribute = AttributeList(SingletonSeparatedList(Attribute(IdentifierName(Constants.DynamicDependencyAttributeGlobal))
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
441
(ParameterListSyntax parameterList, TypeSyntax returnType,
AttributeListSyntax
returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData();
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
317
(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
>();
141
&& AdditionalAttributes.SequenceEqual(other.AdditionalAttributes, (IEqualityComparer<
AttributeListSyntax
>)SyntaxEquivalentComparer.Instance);
UnmanagedToManagedStubGenerator.cs (1)
108
public (ParameterListSyntax ParameterList, TypeSyntax ReturnType,
AttributeListSyntax
? ReturnTypeAttributes) GenerateAbiMethodSignatureData()
Microsoft.VisualStudio.LanguageServices.CSharp (41)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (5)
59
AttributeListSyntax
oldAttributeList,
60
AttributeListSyntax
newAttributeList,
866
else if (node is
AttributeListSyntax
attributeList)
902
else if (node is
AttributeListSyntax
attributeList)
953
else if (node is
AttributeListSyntax
attributeList)
CodeModel\CSharpCodeModelService.cs (35)
290
private static IEnumerable<SyntaxNode> GetAttributeNodes(SyntaxList<
AttributeListSyntax
> attributeDeclarationList)
292
foreach (
var
attributeDeclaration in attributeDeclarationList)
1671
RoslynDebug.Assert(attributeNode.Parent is
AttributeListSyntax
);
1673
return (
AttributeListSyntax
)attributeNode.Parent;
1679
RoslynDebug.Assert(attributeNode.Parent is
AttributeListSyntax
);
1681
var
attributeList = (
AttributeListSyntax
)attributeNode.Parent;
1692
Debug.Assert(attributeNode is
AttributeListSyntax
);
1694
var
attributeList = (
AttributeListSyntax
)attributeNode;
2790
var
attributeList = node.FirstAncestorOrSelf<
AttributeListSyntax
>();
2808
var
newAttributeList = attributeList.RemoveNode(node, SyntaxRemoveOptions.KeepNoTrivia);
3081
var
attributeDeclaration = (
AttributeListSyntax
)attribute.Parent!;
3191
return node is
AttributeListSyntax
3192
? ((
AttributeListSyntax
)node).Attributes.First()
3361
var newAttributeLists = compilationUnit.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3366
var newAttributeLists = enumDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3371
var newAttributeLists = classDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3376
var newAttributeLists = structDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3381
var newAttributeLists = interfaceDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3386
var newAttributeLists = method.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3391
var newAttributeLists = operationDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3396
var newAttributeLists = conversion.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3401
var newAttributeLists = constructor.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3406
var newAttributeLists = destructor.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3411
var newAttributeLists = property.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3416
var newAttributeLists = eventDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3421
var newAttributeLists = indexer.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3426
var newAttributeLists = field.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3431
var newAttributeLists = eventFieldDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3436
var newAttributeLists = delegateDeclaration.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3441
var newAttributeLists = member.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
3446
var newAttributeLists = parameter.AttributeLists.Insert(index, (
AttributeListSyntax
)list);
CodeModel\SyntaxNodeExtensions.cs (1)
14
public static bool TryGetAttributeLists(this SyntaxNode node, out SyntaxList<
AttributeListSyntax
> attributeLists)
QuarantineTools.Tests (6)
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 (36)
CSharpImportingConstructorShouldBeObsoleteCodeFixProvider.cs (2)
27
typeDeclaration = attributeName.GetAncestor<
AttributeListSyntax
>()?.Parent;
32
=> ((
AttributeListSyntax
)attributeList).WithTarget(AttributeTargetSpecifier(MethodKeyword));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
13
public static SyntaxList<
AttributeListSyntax
> GetAttributes(this MemberDeclarationSyntax member)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
159
public static SyntaxList<
AttributeListSyntax
> GetAttributeLists(this SyntaxNode? declaration)
732
AttributeListSyntax
n => (n.OpenBracketToken, n.CloseBracketToken),
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
208
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
359
if (previousToken.Kind() == SyntaxKind.CommaToken && currentToken.Kind() == SyntaxKind.OpenBracketToken && currentToken.Parent is
AttributeListSyntax
)
365
if (previousToken.Kind() == SyntaxKind.CloseBracketToken && previousToken.Parent is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1175
node.Parent is
AttributeListSyntax
attributeList &&
1698
=> ((
AttributeListSyntax
)node).Attributes;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
20
public static SyntaxList<
AttributeListSyntax
> GenerateAttributeLists(
47
private static
AttributeListSyntax
? TryGenerateAttributeDeclaration(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
142
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (2)
219
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
227
var attributes = new List<
AttributeListSyntax
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
262
private static SyntaxList<
AttributeListSyntax
> GenerateAttributeDeclarations(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (1)
113
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (1)
141
private static SyntaxList<
AttributeListSyntax
> GenerateAttributes(
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
283
if (nonTerminalNode is
AttributeListSyntax
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
211
AttributeListSyntax
attributeDeclaration => InferTypeInAttributeDeclaration(attributeDeclaration, token),
870
private IEnumerable<TypeInferenceInfo> InferTypeInAttributeDeclaration(
AttributeListSyntax
attributeDeclaration, SyntaxToken? previousToken)