WorkspaceExtensions.ReplaceMembersAsync Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.CSharp.Workspaces.dll
Overloads
Method | Summary |
---|---|
ReplaceMembersAsync(Document, MemberDeclarationListInfo, IEnumerable<MemberDeclarationSyntax>, CancellationToken) | Creates a new document with the specified members replaced with new members. |
ReplaceMembersAsync(Document, MemberDeclarationListInfo, SyntaxList<MemberDeclarationSyntax>, CancellationToken) | Creates a new document with the specified members replaced with new members. |
ReplaceMembersAsync(Document, MemberDeclarationListInfo, IEnumerable<MemberDeclarationSyntax>, CancellationToken)
Creates a new document with the specified members replaced with new members.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReplaceMembersAsync(this Microsoft.CodeAnalysis.Document document, Roslynator.CSharp.Syntax.MemberDeclarationListInfo info, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> newMembers, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
info MemberDeclarationListInfo
newMembers IEnumerable<MemberDeclarationSyntax>
cancellationToken CancellationToken
Returns
ReplaceMembersAsync(Document, MemberDeclarationListInfo, SyntaxList<MemberDeclarationSyntax>, CancellationToken)
Creates a new document with the specified members replaced with new members.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> ReplaceMembersAsync(this Microsoft.CodeAnalysis.Document document, Roslynator.CSharp.Syntax.MemberDeclarationListInfo info, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> newMembers, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
info MemberDeclarationListInfo
newMembers SyntaxList<MemberDeclarationSyntax>
cancellationToken CancellationToken