Base:
property
AttributeLists
Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax.AttributeLists
12 references to AttributeLists
Microsoft.CodeAnalysis.CSharp (10)
Syntax.xml.Main.Generated.cs (1)
1915
=> node.Update(VisitList(node.
AttributeLists
), VisitToken(node.IfKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"), (ElseClauseSyntax?)Visit(node.Else));
Syntax.xml.Syntax.Generated.cs (8)
8372
if (attributeLists != this.
AttributeLists
|| ifKeyword != this.IfKeyword || openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.CloseParenToken || statement != this.Statement || @else != this.Else)
8384
public IfStatementSyntax WithIfKeyword(SyntaxToken ifKeyword) => Update(this.
AttributeLists
, ifKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement, this.Else);
8385
public IfStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.
AttributeLists
, this.IfKeyword, openParenToken, this.Condition, this.CloseParenToken, this.Statement, this.Else);
8386
public IfStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.
AttributeLists
, this.IfKeyword, this.OpenParenToken, condition, this.CloseParenToken, this.Statement, this.Else);
8387
public IfStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.
AttributeLists
, this.IfKeyword, this.OpenParenToken, this.Condition, closeParenToken, this.Statement, this.Else);
8388
public IfStatementSyntax WithStatement(StatementSyntax statement) => Update(this.
AttributeLists
, this.IfKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, statement, this.Else);
8389
public IfStatementSyntax WithElse(ElseClauseSyntax? @else) => Update(this.
AttributeLists
, this.IfKeyword, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement, @else);
8392
public new IfStatementSyntax AddAttributeLists(params AttributeListSyntax[] items) => WithAttributeLists(this.
AttributeLists
.AddRange(items));
Syntax\IfStatementSyntax.cs (1)
12
=> Update(
AttributeLists
, ifKeyword, openParenToken, condition, closeParenToken, statement, @else);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12769
Assert.Equal(default, node.
AttributeLists
);
12776
var newNode = node.WithAttributeLists(node.
AttributeLists
).WithIfKeyword(node.IfKeyword).WithOpenParenToken(node.OpenParenToken).WithCondition(node.Condition).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement).WithElse(node.Else);