Skip to main content

StatementListInfo.WithStatements Method

Containing Type: StatementListInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
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

StatementListInfo

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>

Returns

StatementListInfo