Delen via


SeparatedSyntaxList<TNode>.ReplaceSeparator Method

Definition

Creates a new list with the specified separator token replaced with the new separator.

public:
 Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> ReplaceSeparator(Microsoft::CodeAnalysis::SyntaxToken separatorToken, Microsoft::CodeAnalysis::SyntaxToken newSeparator);
public Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> ReplaceSeparator (Microsoft.CodeAnalysis.SyntaxToken separatorToken, Microsoft.CodeAnalysis.SyntaxToken newSeparator);
member this.ReplaceSeparator : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)>
Public Function ReplaceSeparator (separatorToken As SyntaxToken, newSeparator As SyntaxToken) As SeparatedSyntaxList(Of TNode)

Parameters

separatorToken
SyntaxToken

The separator token to be replaced.

newSeparator
SyntaxToken

The new separator token.

Returns

Applies to