Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax.AttributeLists
26 references to AttributeLists
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Statements.cs (2)
1903
if (node.
AttributeLists
.Count > 0)
1905
Error(diagnostics, ErrorCode.ERR_AttributesNotAllowed, node.
AttributeLists
[0]);
Syntax.xml.Main.Generated.cs (1)
1831
=> node.Update(VisitList(node.
AttributeLists
), VisitToken(node.OpenBraceToken), VisitList(node.Statements), VisitToken(node.CloseBraceToken));
Syntax.xml.Syntax.Generated.cs (20)
3156
public new AnonymousMethodExpressionSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.
AttributeLists
.AddRange(items)));
3297
return WithBlock(block.WithAttributeLists(block.
AttributeLists
.AddRange(items)));
3459
return WithBlock(block.WithAttributeLists(block.
AttributeLists
.AddRange(items)));
6286
if (attributeLists != this.
AttributeLists
|| openBraceToken != this.OpenBraceToken || statements != this.Statements || closeBraceToken != this.CloseBraceToken)
6298
public BlockSyntax WithOpenBraceToken(SyntaxToken openBraceToken) => Update(this.
AttributeLists
, openBraceToken, this.Statements, this.CloseBraceToken);
6299
public BlockSyntax WithStatements(SyntaxList<StatementSyntax> statements) => Update(this.
AttributeLists
, this.OpenBraceToken, statements, this.CloseBraceToken);
6300
public BlockSyntax WithCloseBraceToken(SyntaxToken closeBraceToken) => Update(this.
AttributeLists
, this.OpenBraceToken, this.Statements, closeBraceToken);
6303
public new BlockSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
6430
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
8152
public CheckedStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.
AttributeLists
.AddRange(items)));
8216
public UnsafeStatementSyntax AddBlockAttributeLists(params AttributeListSyntax[] items) => WithBlock(this.Block.WithAttributeLists(this.Block.
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)));
12410
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
12556
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
12702
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
12826
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
12999
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
13580
return WithBody(body.WithAttributeLists(body.
AttributeLists
.AddRange(items)));
Syntax\BlockSyntax.cs (1)
12
=> Update(
AttributeLists
, openBraceToken, statements, closeBraceToken);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12382
Assert.Equal(default, node.
AttributeLists
);
12386
var newNode = node.WithAttributeLists(node.
AttributeLists
).WithOpenBraceToken(node.OpenBraceToken).WithStatements(node.Statements).WithCloseBraceToken(node.CloseBraceToken);