StatementListInfo.WithStatements Method
Containing Type: StatementListInfo
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
WithStatements(IEnumerable<StatementSyntax>) | Creates a new StatementListInfo with the statements updated. |
WithStatements(SyntaxList<StatementSyntax>) | Creates a new StatementListInfo with the statements updated. |
WithStatements(IEnumerable<StatementSyntax>)
Creates a new StatementListInfo with the statements updated.
public Roslynator.CSharp.Syntax.StatementListInfo WithStatements(System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements)
Parameters
statements IEnumerable<StatementSyntax>
Returns
WithStatements(SyntaxList<StatementSyntax>)
Creates a new StatementListInfo with the statements updated.
public Roslynator.CSharp.Syntax.StatementListInfo WithStatements(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements)
Parameters
statements SyntaxList<StatementSyntax>