SeparatedSyntaxList<TNode>.ReplaceSeparator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.